ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ThreadLocalTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ThreadLocalTest.java (file contents):
Revision 1.12 by jsr166, Tue Mar 15 19:47:07 2011 UTC vs.
Revision 1.14 by jsr166, Wed Dec 31 16:44:02 2014 UTC

# Line 7 | Line 7
7   */
8  
9   import junit.framework.*;
10 import java.util.concurrent.Semaphore;
10  
11   public class ThreadLocalTest extends JSR166TestCase {
12      public static void main(String[] args) {
# Line 67 | Line 66 | public class ThreadLocalTest extends JSR
66                  child = new ITLThread(x);
67                  child.start();
68              }
69 <            Thread.currentThread().yield();
69 >            Thread.yield();
70  
71              int threadId = itl.get().intValue();
72              for (int j = 0; j < threadId; j++) {
73                  x[threadId]++;
74 <                Thread.currentThread().yield();
74 >                Thread.yield();
75              }
76  
77              if (child != null) { // Wait for child (if any)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines