C# thread safe increment July 8, 2019 16 32 64 128 C# thread-safe increment counter C# thread safe increment int Thread safe c#