You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These variables are accessed by different threads but only writes are protected (using Interlocked.Add / Interlocked.Increment).
However all reads should be protected too (otherwise different threads can read stale values). volatile would be the simplest way, but due to its complexity most prefer something like Interlocked.CompareExchange or even regular locks.