18 |
|
import java.util.concurrent.Future; |
19 |
|
import java.util.concurrent.RejectedExecutionException; |
20 |
|
import java.util.concurrent.RunnableFuture; |
21 |
– |
import java.util.concurrent.ThreadLocalRandom; |
21 |
|
import java.util.concurrent.TimeUnit; |
22 |
|
|
23 |
|
/** |
530 |
|
* Returns a new worker thread operating in the given pool. |
531 |
|
* |
532 |
|
* @param pool the pool this thread works in |
534 |
– |
* @throws NullPointerException if the pool is null |
533 |
|
* @return the new worker thread |
534 |
+ |
* @throws NullPointerException if the pool is null |
535 |
|
*/ |
536 |
|
public ForkJoinWorkerThread newThread(ForkJoinPool pool); |
537 |
|
} |