예제 #1
0
 public void startTickDown(TickActer E) {
   if (E.nextAct() <= System.currentTimeMillis()) {
     CMClass.threadPool.execute(E);
     return;
   }
   tickActQueue.add(E);
   if (tickActQueue.first() == E) tickActThread.interrupt();
 }
예제 #2
0
 public boolean deleteTick(TickActer E) {
   boolean interruptLater = (tickActQueue.first() == E);
   boolean found = tickActQueue.remove(E);
   if (interruptLater && found) tickActThread.interrupt();
   return found;
 }