pub struct GlobalPool {
pub intra_threads: usize,
pub inter_threads: usize,
pub spin: bool,
}Expand description
Shared CPU pool request.
Fields§
§intra_threads: usize§inter_threads: usize§spin: boolBusy-wait in idle workers. Off by default: HeardRight measured spinning as pure CPU cost for bursty dictation workloads.
Implementations§
Source§impl GlobalPool
impl GlobalPool
Sourcepub fn from_budget() -> Self
pub fn from_budget() -> Self
Budget derived from physical cores via cpu_thread_budget, one inter
thread, no spinning.
Trait Implementations§
Source§impl Clone for GlobalPool
impl Clone for GlobalPool
impl Copy for GlobalPool
Source§impl Debug for GlobalPool
impl Debug for GlobalPool
impl Eq for GlobalPool
Source§impl PartialEq for GlobalPool
impl PartialEq for GlobalPool
impl StructuralPartialEq for GlobalPool
Auto Trait Implementations§
impl Freeze for GlobalPool
impl RefUnwindSafe for GlobalPool
impl Send for GlobalPool
impl Sync for GlobalPool
impl Unpin for GlobalPool
impl UnsafeUnpin for GlobalPool
impl UnwindSafe for GlobalPool
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