Skip to main content

Module waker

Module waker 

Source
๐Ÿ”ฌThis is a nightly-only experimental API. (mpmc_channel #126840)
Expand description

Waking mechanism for threads blocked on channel operations.

Re-exportsยง

use super::context::Context; ๐Ÿ”’ Experimental
use super::select::Operation; ๐Ÿ”’ Experimental
use super::select::Selected; ๐Ÿ”’ Experimental
use crate::ptr; ๐Ÿ”’
use crate::sync::Mutex; ๐Ÿ”’
use crate::sync::atomic::Atomic; ๐Ÿ”’ Experimental
use crate::sync::atomic::AtomicBool; ๐Ÿ”’
use crate::sync::atomic::Ordering; ๐Ÿ”’

Structsยง

Entry ๐Ÿ”’ Experimental
Represents a thread blocked on a specific channel operation.
SyncWaker ๐Ÿ”’ Experimental
A waker that can be shared among threads without locking.
Waker ๐Ÿ”’ Experimental
A queue of threads blocked on channel operations.

Functionsยง

current_thread_id ๐Ÿ”’ Experimental
Returns a unique id for the current thread.