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

Comparing jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java (file contents):
Revision 1.17 by dl, Mon Jan 12 16:37:40 2004 UTC vs.
Revision 1.21 by dl, Thu May 18 10:29:23 2006 UTC

# Line 188 | Line 188 | public class AbstractQueuedSynchronizerT
188              sync.release(1);
189              Thread.sleep(SHORT_DELAY_MS);
190              assertFalse(sync.isQueued(t1));
191 +            Thread.sleep(SHORT_DELAY_MS);
192              assertFalse(sync.isQueued(t2));
193              t1.join();
194              t2.join();
# Line 214 | Line 215 | public class AbstractQueuedSynchronizerT
215              assertEquals(t1, sync.getFirstQueuedThread());
216              t1.interrupt();
217              Thread.sleep(SHORT_DELAY_MS);
218 +            Thread.sleep(SHORT_DELAY_MS);
219              assertEquals(t2, sync.getFirstQueuedThread());
220              sync.release(1);
221              Thread.sleep(SHORT_DELAY_MS);
# Line 459 | Line 461 | public class AbstractQueuedSynchronizerT
461          Thread t = new Thread(new InterruptedSyncRunnable(sync));
462          try {
463              t.start();
464 +            Thread.sleep(SHORT_DELAY_MS);
465              t.interrupt();
466 +            Thread.sleep(SHORT_DELAY_MS);
467              sync.release(1);
468              t.join();
469          } catch(Exception e){
# Line 948 | Line 952 | public class AbstractQueuedSynchronizerT
952              sync.acquire(1);
953              c.signal();
954              sync.release(1);
951            assert(t.isInterrupted());
955              t.join(SHORT_DELAY_MS);
956              assertFalse(t.isAlive());
957          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines