pub struct StagedThread { /* private fields */ }Expand description
Owns a reserved first activation, analogous to Linux’s pre-wake TASK_NEW.
Drop queues cancellation; the reaper releases the reservation and entry. The task never becomes runnable when cancelled.
Implementations§
Source§impl StagedThread
impl StagedThread
Sourcepub fn thread_handle(&self) -> ThreadHandle
pub fn thread_handle(&self) -> ThreadHandle
Borrows task identity while the OS publishes its resources.
Sourcepub fn activate(self) -> ThreadHandle
pub fn activate(self) -> ThreadHandle
Commits first activation after all external identity publication is complete.
Trait Implementations§
Source§impl Drop for StagedThread
impl Drop for StagedThread
Auto Trait Implementations§
impl !RefUnwindSafe for StagedThread
impl !UnwindSafe for StagedThread
impl Freeze for StagedThread
impl Send for StagedThread
impl Sync for StagedThread
impl Unpin for StagedThread
impl UnsafeUnpin for StagedThread
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