Exemple #1
0
 void awaitHealthy() {
   monitor.enterWhenUninterruptibly(awaitHealthGuard);
   try {
     checkHealthy();
   } finally {
     monitor.leave();
   }
 }
Exemple #2
0
 void awaitStopped() {
   monitor.enterWhenUninterruptibly(stoppedGuard);
   monitor.leave();
 }