Example #1
0
 static void Watcher()
 {
     while (true)
     {
         Debug.Assert(SmallMatrix.SameValueEverywhere(s_smallMatrix));
     }
 }
Example #2
0
 static void Main(string[] args)
 {
     (new Thread(Watcher)).Start();
     while (true)
     {
         s_smallMatrix = new SmallMatrix(0);
         s_smallMatrix = new SmallMatrix(1);
     }
 }
Example #3
0
 public static bool SameValueEverywhere(SmallMatrix m)
 {
     return((m.m_a == m.m_b) &&
            (m.m_a == m.m_c) &&
            (m.m_a == m.m_d));
 }