Esempio n. 1
0
 public void DoThread(object instance)
 {
     while (true)
     {
         Static.AtomicSet(true);                                                     // atomic, but not volatile
         Console.WriteLine(Static.Value());
     }
 }