Struct rayon_core::sleep::WorkerSleepState
source · struct WorkerSleepState {
is_blocked: Mutex<bool>,
condvar: Condvar,
}
Expand description
The “sleep state” for an individual worker.
Fields§
§is_blocked: Mutex<bool>
Set to true when the worker goes to sleep; set to false when the worker is notified or when it wakes.
condvar: Condvar
Trait Implementations§
source§impl Default for WorkerSleepState
impl Default for WorkerSleepState
source§fn default() -> WorkerSleepState
fn default() -> WorkerSleepState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for WorkerSleepState
impl RefUnwindSafe for WorkerSleepState
impl Send for WorkerSleepState
impl Sync for WorkerSleepState
impl Unpin for WorkerSleepState
impl UnwindSafe for WorkerSleepState
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