View source code
Display the source code in std/parallelism.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Struct std.parallelism.TaskPool.WorkerLocalStorageRange
Range primitives for worker-local storage. The purpose of this is to
access results produced by each worker thread from a single thread once you
are no longer using the worker-local storage from multiple threads.
Do not use this struct in the parallel
portion of your algorithm.
The proper way to instantiate this object
is to call
. Once instantiated, this WorkerLocalStorage.toRange
object
behaves
as a finite random-access range with assignable, lvalue elements and
a length equal to the number of worker threads in the
that
created it plus 1.
TaskPool