C
Cool Guy
From http://www.yoda.arachsys.com/csharp/threads/volatility.shtml :
| We've already seen how locking is used to limit access to a
| single thread at a time. It also has another side effect: a
| call to Monitor.Enter performs an implicit volatile read,
| and a call to Monitor.Exit performs an implicit volatile write.
Which reads and writes, within a C# lock, are volatile? All of them? Just
the first?
| We've already seen how locking is used to limit access to a
| single thread at a time. It also has another side effect: a
| call to Monitor.Enter performs an implicit volatile read,
| and a call to Monitor.Exit performs an implicit volatile write.
Which reads and writes, within a C# lock, are volatile? All of them? Just
the first?