public void stopAllTasks() {
        ICBTask task;
        stopSign = true;
        while ((task = queue.poll()) != null) {
            task.stopTask();
        }
    }
public void stopAllTasks() {
        ICBTask task;
        stopSign = true;
        while ((task = queue.poll()) != null) {
            task.stopTask();
        }
    }
public void stopAllTasks ( ) { ICBTask task ; stopSign = true ; while ( ( task = queue . poll ( ) ) != null ) { task . stopTask ( ) ; } }
停止任务
停止任务