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

Diff of /jsr166/src/test/tck/AtomicBooleanTest.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 81  Line 81 
81       */       */
82      public void testCompareAndSetInMultipleThreads() throws Exception {      public void testCompareAndSetInMultipleThreads() throws Exception {
83          final AtomicBoolean ai = new AtomicBoolean(true);          final AtomicBoolean ai = new AtomicBoolean(true);
84          Thread t = new Thread(new Runnable() {          Thread t = new Thread(new CheckedRunnable() {
85                  public void run() {              public void realRun() {
86                      while (!ai.compareAndSet(false, true)) Thread.yield();                      while (!ai.compareAndSet(false, true)) Thread.yield();
87                  }});                  }});
88    

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

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8