protected void stopWorkers(Collection<WorkerThread> workers){
  if (workers == null) {
    workers=this.workers;
  }
  final Iterator<WorkerThread> iter=workers.iterator();
  while (iter.hasNext()) {
    final WorkerThread worker=iter.next();
    if ((worker.getStatus() & (WorkerThread.sENDED | WorkerThread.sENDING)) == 0) {
      worker.signalShutdown();
      runningWorkers--;
    }
  }
}

protected void stopWorkers ( Collection < WorkerThread > workers ) { if ( workers == null ) { workers = this . workers ; } final Iterator < WorkerThread > iter = workers . iterator ( ) ; while ( iter . hasNext ( ) ) { final WorkerThread worker = iter . next ( ) ; if ( ( worker . getStatus ( ) & ( WorkerThread . sENDED | WorkerThread . sENDING ) ) == 0 ) { worker . signalShutdown ( ) ; runningWorkers -- ; } } }
signals the given workers to end . note that this method does not validate that the signal is being acted upon .
