Expand description
Methods for custom fork-join scopes, created by the scope()
and in_place_scope() functions. These are a more flexible alternative to join().
Structs§
- Scope
- Represents a fork-join scope which can be used to spawn any number of tasks.
See
scope()for more information. - Scope
Base 🔒 - Scope
Fifo - Represents a fork-join scope which can be used to spawn any number of tasks.
Those spawned from the same thread are prioritized in relative FIFO order.
See
scope_fifo()for more information. - Scope
Ptr 🔒 - Used to capture a scope
&Selfpointer in jobs, without faking a lifetime.
Functions§
- do_
in_ 🔒place_ scope - do_
in_ 🔒place_ scope_ fifo - in_
place_ scope - Creates a “fork-join” scope
sand invokes the closure with a reference tos. This closure can then spawn asynchronous tasks intos. Those tasks may run asynchronously with respect to the closure; they may themselves spawn additional tasks intos. When the closure returns, it will block until all tasks that have been spawned intoscomplete. - in_
place_ scope_ fifo - Creates a “fork-join” scope
swith FIFO order, and invokes the closure with a reference tos. This closure can then spawn asynchronous tasks intos. Those tasks may run asynchronously with respect to the closure; they may themselves spawn additional tasks intos. When the closure returns, it will block until all tasks that have been spawned intoscomplete. - scope
- Creates a “fork-join” scope
sand invokes the closure with a reference tos. This closure can then spawn asynchronous tasks intos. Those tasks may run asynchronously with respect to the closure; they may themselves spawn additional tasks intos. When the closure returns, it will block until all tasks that have been spawned intoscomplete. - scope_
fifo - Creates a “fork-join” scope
swith FIFO order, and invokes the closure with a reference tos. This closure can then spawn asynchronous tasks intos. Those tasks may run asynchronously with respect to the closure; they may themselves spawn additional tasks intos. When the closure returns, it will block until all tasks that have been spawned intoscomplete.