Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the (hopefully unlikely) event that isSatisfied() throws.
(Guard guard)
| 1064 | */ |
| 1065 | |
| 1066 | @GuardedBy("lock") |
| 1067 | private boolean isSatisfied(Guard guard) { |
| 1068 | try { |
| 1069 | return guard.isSatisfied(); |
| 1070 | } catch (Throwable throwable) { |
| 1071 | signalAllWaiters(); |
| 1072 | throw Throwables.propagate(throwable); |
| 1073 | } |
| 1074 | } |
| 1075 | |
| 1076 | /** |
| 1077 | * Signals all threads waiting on guards. |
no test coverage detected