Function priomutex::internals::create_tokens [] [src]

pub fn create_tokens() -> (SleepToken, WakeToken)

Create a linked pair of tokens.

Note that the SleepToken is valid for the current thread only. Don't send it to another thread!