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().
Re-exportsΒ§
use std::any::Any;πuse std::collections::HashSet;πuse std::marker::PhantomData;πuse std::mem::ManuallyDrop;πuse std::sync::atomic::AtomicPtr;πuse std::sync::atomic::Ordering;πuse std::sync::Arc;πuse std::sync::Mutex;πuse std::fmt;πuse std::ptr;πuse crate::broadcast::BroadcastContext;πuse crate::job::ArcJob;πuse crate::job::HeapJob;πuse crate::job::JobFifo;πuse crate::job::JobRef;πuse crate::job::JobRefId;πuse crate::latch::CountLatch;πuse crate::latch::Latch;πuse crate::registry::Registry;πuse crate::registry::WorkerThread;πuse crate::registry::global_registry;πuse crate::registry::in_worker;πuse crate::tlv;πuse crate::tlv::Tlv;πuse crate::unwind;π
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.