Ejemplo n.º 1
0
 synchronized void start() {
   if (queue.closed()) queue.reset();
   if (thread == null || !thread.isAlive()) {
     thread = getThreadFactory().newThread(this, "ViewHandler");
     thread.setDaemon(
         false); // thread cannot terminate if we have tasks left, e.g. when we as coord leave
     thread.start();
   }
 }
Ejemplo n.º 2
0
 public synchronized void resumeForce() {
   if (queue.closed()) queue.reset();
   suspended = false;
 }