[][src]Struct sunrise_kernel::process::ThreadStateEvent

struct ThreadStateEvent {
    waiting_threads: SpinLock<Vec<Arc<ThreadStruct>>>,
}

The underlying shared object of a [Weak].

Fields

waiting_threads: SpinLock<Vec<Arc<ThreadStruct>>>

List of threads waiting on this thread to exit. When this thread exit, all those threads will be rescheduled.

Implementations

impl ThreadStateEvent[src]

pub fn signal(&self)[src]

Signals the event, waking up any thread waiting on its value.

Trait Implementations

impl Debug for ThreadStateEvent[src]

Auto Trait Implementations

impl !RefUnwindSafe for ThreadStateEvent

impl Send for ThreadStateEvent

impl Sync for ThreadStateEvent

impl Unpin for ThreadStateEvent

impl !UnwindSafe for ThreadStateEvent

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.