Correct the join testcase
authoradash <adash>
Fri, 18 Jan 2008 08:19:30 +0000 (08:19 +0000)
committeradash <adash>
Fri, 18 Jan 2008 08:19:30 +0000 (08:19 +0000)
Robust/src/Tests/Atomic5.java

index c53d56747a9e68b3e6eac0a58d981216420184ce..b93b71d331729a179bda8eaeef6910622ac95974 100644 (file)
@@ -43,16 +43,12 @@ public class Atomic5 extends Thread {
                        }
                        tmp.start(mid);
                }
-
                for(int i = 0; i< 4; i++) {
+                       atomic {
+                               tmp = at5[i];
+                       }
                        tmp.join();
                }
-
-               /*
-               for(int i = 0 ; i< 4; i++) {
-                       at5[i].start(mid);
-               }
-               */
                System.printString("Finished\n");
                while(true) {
                        ;