Struct ppl::core::orchestrator::Orchestrator
source · pub struct Orchestrator { /* private fields */ }
Expand description
The orchestrator is the main structure of the library. Is composed by a list of partitions, each partition, if pinning is enabled, is a core. The orchestrator is responsible to create the partitions and to distribute the jobs to the partitions. The orchestractor is global, implemented as a singleton. The main idea is to have a central point that distribuite evenly the jobs to the partitions, exploiting the CPU topology of the system.
Implementations§
source§impl Orchestrator
impl Orchestrator
sourcepub unsafe fn delete_global_orchestrator()
pub unsafe fn delete_global_orchestrator()
Delete the global orchestrator.
§Safety
This method should be used only when writing tests or benchmarks, or in the few cases where we want destroy the global orchestrator long before the end the application.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Orchestrator
impl Send for Orchestrator
impl Sync for Orchestrator
impl Unpin for Orchestrator
impl UnwindSafe for Orchestrator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more