pub(crate) struct Workers {
pub(crate) ever: bool,
pub(crate) requested: bool,
pub(crate) pending: bool,
}Expand description
What a CCtx knows about its worker threads (NbWorkers).
Fields§
§ever: boolNbWorkers was ever set to a non-zero value, see guard_own_tables.
requested: boolNbWorkers is currently set to a non-zero value.
pending: boolA multithreaded frame was started and not finished.
Its jobs may still be running on the worker threads, reading the
context’s dictionary and job table: zstd only waits for them when the
next frame starts, or when the context is freed. Until then, nothing
may free or resize what they use. See CCtx::wait_for_workers().
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workers
impl RefUnwindSafe for Workers
impl Send for Workers
impl Sync for Workers
impl Unpin for Workers
impl UnsafeUnpin for Workers
impl UnwindSafe for Workers
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