Structs§
- Atomic
Notification πNotification for aWaiter
. This struct is equivalent toOption<Notification>
, but usesAtomicUsize
inside for atomic operations. - Future returned from
Notify::notified()
. - Notifies a single task to wake up.
- Notify
Waiters πList List used inNotify::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.
- NOTIFICATIO
N_ πALL - NOTIFICATIO
N_ πLAST - NOTIFICATIO
N_ πNONE - NOTIFICATIO
N_ πONE - NOTIFIED πPending notification.
- NOTIF
Y_ πWAITER S_ SHIFT - STAT
E_ πMASK - WAITING πOne or more threads are currently waiting to be notified.
Functions§
- get_
state π - is_
unpin π - notify_
locked π - set_
state π
Type Aliases§
- Guarded
Wait πList - Wait
List π