Liking cljdoc? Tell your friends :D

jdk.util.concurrent.ForkJoinWorkerThread

A thread managed by a ForkJoinPool, which executes ForkJoinTasks. This class is subclassable solely for the sake of adding functionality -- there are no overridable methods dealing with scheduling or execution. However, you can override initialization and termination methods surrounding the main task processing loop. If you do create such a subclass, you will also need to supply a custom ForkJoinPool.ForkJoinWorkerThreadFactory to use it in a ForkJoinPool.

A thread managed by a ForkJoinPool, which executes
ForkJoinTasks.
This class is subclassable solely for the sake of adding
functionality -- there are no overridable methods dealing with
scheduling or execution.  However, you can override initialization
and termination methods surrounding the main task processing loop.
If you do create such a subclass, you will also need to supply a
custom ForkJoinPool.ForkJoinWorkerThreadFactory to
use it in a ForkJoinPool.
raw docstring

get-poolclj

(get-pool this)

Returns the pool hosting this thread.

returns: the pool - java.util.concurrent.ForkJoinPool

Returns the pool hosting this thread.

returns: the pool - `java.util.concurrent.ForkJoinPool`
raw docstring

get-pool-indexclj

(get-pool-index this)

Returns the unique index number of this thread in its pool. The returned value ranges from zero to the maximum number of threads (minus one) that may exist in the pool, and does not change during the lifetime of the thread. This method may be useful for applications that track status or collect results per-worker-thread rather than per-task.

returns: the index number - int

Returns the unique index number of this thread in its pool.
 The returned value ranges from zero to the maximum number of
 threads (minus one) that may exist in the pool, and does not
 change during the lifetime of the thread.  This method may be
 useful for applications that track status or collect results
 per-worker-thread rather than per-task.

returns: the index number - `int`
raw docstring

runclj

(run this)

This method is required to be public, but should never be called explicitly. It performs the main run loop to execute ForkJoinTasks.

This method is required to be public, but should never be
called explicitly. It performs the main run loop to execute
ForkJoinTasks.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close