private static void IncreaseError() { lock (_errorsSync) { __errors++; } } private static object _warningSync = new object();