StructsΒ§
- Atomic
Notification π - Notification for a
Waiter
. This struct is equivalent toOption<Notification>
, but usesAtomicUsize
inside for atomic operations. - Notified
- Future returned from
Notify::notified()
. - Notify
- Notifies a single task to wake up.
- Notify
Waiters πList - List used in
Notify::notify_waiters
. It wraps a guarded linked list and gates the access to it onnotify.waiters
mutex. It also empties the list on drop. - Waiter π
EnumsΒ§
- Notification π
- Notify
OneStrategy π - State π
ConstantsΒ§
- EMPTY π
- Initial βidleβ state.
- NOTIFICATION_
ALL π - NOTIFICATION_
LAST π - NOTIFICATION_
NONE π - NOTIFICATION_
ONE π - NOTIFIED π
- Pending notification.
- NOTIFY_
WAITERS_ πCALLS_ MASK - NOTIFY_
WAITERS_ πSHIFT - STATE_
MASK π - WAITING π
- One or more threads are currently waiting to be notified.
FunctionsΒ§
- atomic_
inc_ πnum_ notify_ waiters_ calls - get_
num_ πnotify_ waiters_ calls - get_
state π - inc_
num_ πnotify_ waiters_ calls - is_
unpin π - notify_
locked π - set_
state π
Type AliasesΒ§
- Guarded
Wait πList - Wait
List π