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

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

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

revision 1.14, Tue Nov 17 03:12:51 2009 UTC revision 1.15, Tue Nov 17 06:58:50 2009 UTC
# Line 80  Line 80 
80       */       */
81      public void testCompareAndSetInMultipleThreads() throws Exception {      public void testCompareAndSetInMultipleThreads() throws Exception {
82          final AtomicLong ai = new AtomicLong(1);          final AtomicLong ai = new AtomicLong(1);
83          Thread t = new Thread(new Runnable() {          Thread t = new Thread(new CheckedRunnable() {
84                  public void run() {              public void realRun() {
85                      while (!ai.compareAndSet(2, 3)) Thread.yield();                  while (!ai.compareAndSet(2, 3))
86                        Thread.yield();
87                  }});                  }});
88    
89          t.start();          t.start();

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

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8