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