Пример #1
0
 void cancel(BarrierImplementation b) throws CommunicationException {
   b.changeState(Cancelled);
   b.m_barrierGroup.cancelWaiter(b.m_identity);
   b.m_barrierGroup.removeBarriers(1);
   b.m_barrierGroup.removeListener(b);
 }
Пример #2
0
 boolean awoken(BarrierImplementation b) {
   // Timed out.
   b.changeState(Idle);
   return false;
 }
Пример #3
0
 void awaken(BarrierImplementation b) {
   b.changeState(Idle);
 }
Пример #4
0
 void beginWait(final BarrierImplementation b) {
   b.changeState(Waiting);
 }