pub struct PreparedThread { /* private fields */ }Expand description
Owns a new task which has never entered a runqueue.
Drop queues cancellation for the task-context reaper, including in hard IRQ. Retain a thread handle and join it to observe cancellation completion.
Implementations§
Source§impl PreparedThread
impl PreparedThread
Sourcepub fn thread_handle(&self) -> ThreadHandle
pub fn thread_handle(&self) -> ThreadHandle
Borrows task identity for OS resource initialization.
Sourcepub fn stage(self) -> Result<StagedThread, TaskError>
pub fn stage(self) -> Result<StagedThread, TaskError>
Reserves initial placement without making the task runnable.
Sourcepub fn publish(self) -> Result<ThreadHandle, TaskError>
pub fn publish(self) -> Result<ThreadHandle, TaskError>
Activates a task without an external identity publication transaction.
Trait Implementations§
Source§impl Drop for PreparedThread
impl Drop for PreparedThread
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedThread
impl !UnwindSafe for PreparedThread
impl Freeze for PreparedThread
impl Send for PreparedThread
impl Sync for PreparedThread
impl Unpin for PreparedThread
impl UnsafeUnpin for PreparedThread
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