Struct priomutex::internals::SleepToken
[−]
[src]
pub struct SleepToken(_);
A token for putting the current thread to sleep.
Note: This is NOT Send
or Sync
! (Negative traits are currently unstable...)
Methods
impl SleepToken
[src]
pub fn sleep(self)
[src]
Sleep the current thread until the corresponding WakeToken
is signalled. If the
WakeToken
has already been signalled, this function returns immediately.