Beispiel #1
0
 public void executeBlockingTask(BlockingTask task) throws InterruptedException {
   enterSleep();
   try {
     currentBlockingTask = task;
     pollThreadEvents();
     task.run();
   } finally {
     exitSleep();
     currentBlockingTask = null;
     pollThreadEvents();
   }
 }
Beispiel #2
0
 public void afterBlockingCall() {
   exitSleep();
   pollThreadEvents();
 }