#[repr(C)]pub struct ThreadRepr { /* private fields */ }
Expand description
Base type for a thread object.
Implementations§
source§impl ThreadRepr
impl ThreadRepr
pub fn get_state(&self) -> ExecutionState
pub fn get_code(&self) -> u64
pub fn set_state(&self, state: ExecutionState, code: u64) -> ExecutionState
sourcepub fn waitable(&self, state: ExecutionState) -> ThreadSyncSleep
pub fn waitable(&self, state: ExecutionState) -> ThreadSyncSleep
Create a ThreadSyncSleep that will wait until the thread’s state matches state
.
sourcepub fn waitable_until_not(&self, state: ExecutionState) -> ThreadSyncSleep
pub fn waitable_until_not(&self, state: ExecutionState) -> ThreadSyncSleep
Create a ThreadSyncSleep that will wait until the thread’s state is not state
.
Trait Implementations§
source§impl BaseType for ThreadRepr
impl BaseType for ThreadRepr
source§impl Default for ThreadRepr
impl Default for ThreadRepr
source§fn default() -> ThreadRepr
fn default() -> ThreadRepr
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ThreadRepr
impl ObjSafe for ThreadRepr
impl RefUnwindSafe for ThreadRepr
impl Send for ThreadRepr
impl Sync for ThreadRepr
impl Unpin for ThreadRepr
impl UnwindSafe for ThreadRepr
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