[cvs] / jsr166 / src / test / tck / AtomicIntegerFieldUpdaterTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AtomicIntegerFieldUpdaterTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13, Tue Nov 17 03:12:51 2009 UTC revision 1.14, Tue Nov 17 06:58:50 2009 UTC
# Line 132  Line 132 
132              return;              return;
133          }          }
134    
135          Thread t = new Thread(new Runnable() {          Thread t = new Thread(new CheckedRunnable() {
136                  public void run() {              public void realRun() {
137                      while (!a.compareAndSet(AtomicIntegerFieldUpdaterTest.this, 2, 3)) Thread.yield();                  while (!a.compareAndSet(AtomicIntegerFieldUpdaterTest.this, 2, 3))
138                        Thread.yield();
139                  }});                  }});
140    
141          t.start();          t.start();

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8