public void addTask(JoinTask task){
synchronized (JoinManager.this) {
    if (bTerminated)     return;
  }
synchronized (taskList) {
    if (bTerminated) {
      return;
    }
    taskList.add(task);
    if (this.proxyRegTask == null) {
      this.proxyRegTask=new ProxyRegTask(this,taskSeqN++);
synchronized (taskMgr) {
        taskMgr.add(this.proxyRegTask);
      }
    }
  }
}

public void addTask ( JoinTask task ) { synchronized ( JoinManager . this ) { if ( bTerminated ) return ; } synchronized ( taskList ) { if ( bTerminated ) { return ; } taskList . add ( task ) ; if ( this . proxyRegTask == null ) { this . proxyRegTask = new ProxyRegTask ( this , taskSeqN ++ ) ; synchronized ( taskMgr ) { taskMgr . add ( this . proxyRegTask ) ; } } } }
convenience method that adds new sub - tasks to this class ' task queue .
