scala.collection.par.workstealing.internal.ConcsMethods
Initializes the workstealing tree root.
Initializes the workstealing tree root.
By default does nothing, but some kernels may choose to override this default behaviour.
Initializes a node that has just been stolen.
Initializes a node that has just been stolen.
By default does nothing, but some kernels may choose to override this default behaviour to store operation-specific information into the node.
Processes the specified chunk.
Processes the specified chunk.
Initializes the workstealing tree node.
Initializes the workstealing tree node.
By default does nothing, but some kernels may choose to override this default behaviour to store operation-specific information into the node.
Combines results from two chunks into the aggregate result.
Combines results from two chunks into the aggregate result.
Completes the iteration in the stealer.
Completes the iteration in the stealer.
Some parallel operations do not traverse all the elements in a chunk or a node. The purpose of this method is to bring the node into a Completed or Stolen state before proceeding.
Completes the iteration in the node.
Completes the iteration in the node.
Some parallel operations do not traverse all the elements in a chunk or a node. The purpose of this method is to bring the node into a Completed or Stolen state before proceeding.
Returns true
as long as terminationCause
is null
.
Returns true
as long as terminationCause
is null
.
Pushes the result up the tree
Pushes the result up the tree
After completing node worker tryes to push the result up the tree, as far as he could
Stores the result of processing the node into the lresult
field.
Stores the result of processing the node into the lresult
field.
This behaviour can be overridden.
Used for cancelling operations early (e.
Used for cancelling operations early (e.g. due to exceptions). Holds information on why the operation failed
Returns the result if there was no early termination.
Returns the result if there was no early termination. Otherwise may throw an exception based on the termination cause.
Returns true if completed with no stealing.
Returns true if completed with no stealing. Returns false if steal occurred.
May be overridden in subclass to specialize for better performance.
The neutral element of the reduction.
The neutral element of the reduction.