2004-06-03 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mono / tests / threadpool1.cs
index 6e2c1eff7214a7f7414e96bed7f947f79711b066..ea3014a3da727728f703546bdd4c48f0b991c2e9 100755 (executable)
@@ -12,7 +12,7 @@ public class Test {
                Console.WriteLine("test_casllback:" + state + "ATH: " + workerThreads);
                Thread.Sleep (10);
 
-               csum += 1;
+               Interlocked.Increment (ref csum);
        }
        
        public static int Main () {