Пример #1
0
 /**
  * Creates a ForkJoinWorkerThread operating in the given pool.
  *
  * @param pool the pool this thread works in
  * @throws NullPointerException if pool is null
  */
 protected ForkJoinWorkerThread(ForkJoinPool pool) {
   // Use a placeholder until a useful name can be set in registerWorker
   super("aForkJoinWorkerThread");
   this.pool = pool;
   this.workQueue = pool.registerWorker(this);
 }