Records that the current thread is about to wait on the specified guard.
(Guard guard)
| 1089 | */ |
| 1090 | |
| 1091 | @GuardedBy("lock") |
| 1092 | private void beginWaitingFor(Guard guard) { |
| 1093 | int waiters = guard.waiterCount++; |
| 1094 | if (waiters == 0) { |
| 1095 | // push guard onto activeGuards |
| 1096 | guard.next = activeGuards; |
| 1097 | activeGuards = guard; |
| 1098 | } |
| 1099 | } |
| 1100 | |
| 1101 | /** |
| 1102 | * Records that the current thread is no longer waiting on the specified guard. |
no outgoing calls
no test coverage detected