Synchronization primitive that allows a task to wait for notifications, be it from another task or synchronous code. Notify can safely be copied around, and it will still reference the same internal state.
Class Notify
#include <Notify.hpp>classNotify{ ... }
Examples0
Public static methods0
Public member functions4
arc::Notify&operator=(arc::Notifyconst&other)
No description provided
arc::Notifiednotified()const
Returns an awaitable future that completes when notified.
voidnotifyOne(boolstore)const
Notifies one waiter. If no waiter is present, up to a single permit can be stored, and the next call to notified() will complete immediately. This does not happen if store is false.
voidnotifyAll()const
Notifies all waiters, no permits are stored.