# | Line 786 | Line 786 | public class AbstractQueuedSynchronizerT | |
---|---|---|
786 | public void realRun() throws InterruptedException { | |
787 | sync.acquire(1); | |
788 | c.await(); | |
789 | – | sync.release(1); |
789 | }}); | |
790 | ||
791 | t.start(); | |
# | Line 806 | Line 805 | public class AbstractQueuedSynchronizerT | |
805 | public void realRun() throws InterruptedException { | |
806 | sync.acquire(1); | |
807 | c.awaitNanos(1000 * 1000 * 1000); // 1 sec | |
809 | – | sync.release(1); |
808 | }}); | |
809 | ||
810 | t.start(); | |
# | Line 827 | Line 825 | public class AbstractQueuedSynchronizerT | |
825 | sync.acquire(1); | |
826 | java.util.Date d = new java.util.Date(); | |
827 | c.awaitUntil(new java.util.Date(d.getTime() + 10000)); | |
830 | – | sync.release(1); |
828 | }}); | |
829 | ||
830 | t.start(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |