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