# | Line 464 | Line 464 | public class AbstractQueuedLongSynchroni | |
---|---|---|
464 | Thread t = new Thread(new InterruptedSyncRunnable(sync)); | |
465 | try { | |
466 | t.start(); | |
467 | + | Thread.sleep(SHORT_DELAY_MS); |
468 | t.interrupt(); | |
469 | + | Thread.sleep(SHORT_DELAY_MS); |
470 | sync.release(1); | |
471 | t.join(); | |
472 | } catch(Exception e){ | |
# | Line 953 | Line 955 | public class AbstractQueuedLongSynchroni | |
955 | sync.acquire(1); | |
956 | c.signal(); | |
957 | sync.release(1); | |
956 | – | assert(t.isInterrupted()); |
958 | t.join(SHORT_DELAY_MS); | |
959 | assertFalse(t.isAlive()); | |
960 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |