示例#1
0
文件: GMS.java 项目: jtoerber/JGroups
 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();
   }
 }
示例#2
0
文件: GMS.java 项目: jtoerber/JGroups
 public synchronized void resumeForce() {
   if (queue.closed()) queue.reset();
   suspended = false;
 }