Waits for the guard to be satisfied. Waits indefinitely. May be called only by a thread currently occupying this monitor.
(Guard guard)
| 771 | |
| 772 | |
| 773 | public void waitForUninterruptibly(Guard guard) { |
| 774 | if (! ((guard.monitor == this) & lock.isHeldByCurrentThread())) { |
| 775 | throw new IllegalMonitorStateException(); |
| 776 | } |
| 777 | if (!guard.isSatisfied()) { |
| 778 | awaitUninterruptibly(guard, true); |
| 779 | } |
| 780 | } |
| 781 | |
| 782 | /** |
| 783 | * Waits for the guard to be satisfied. Waits at most the given time, and may be interrupted. May |
no test coverage detected