Module notify

Module notify 

Source

StructsΒ§

AtomicNotification πŸ”’
Notification for a Waiter. This struct is equivalent to Option<Notification>, but uses AtomicUsize inside for atomic operations.
Notified
Future returned from Notify::notified().
NotifiedProject πŸ”’
A custom project implementation is used in place of pin-project-lite as a custom drop for Notified and OwnedNotified implementation is needed.
Notify
Notifies a single task to wake up.
NotifyGuard πŸ”’
A guard that provides exclusive access to a Notify’s internal waiters list.
NotifyWaitersList πŸ”’
List used in Notify::notify_waiters. It wraps a guarded linked list and gates the access to it on notify.waiters mutex. It also empties the list on drop.
OwnedNotified
Future returned from Notify::notified_owned().
Waiter πŸ”’

EnumsΒ§

Notification πŸ”’
NotifyOneStrategy πŸ”’
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Β§

GuardedWaitList πŸ”’
WaitList πŸ”’