|
Uni20
Asynchronous tensor and runtime library.
|
Readiness predicate and optional targeted wakeup registration for a blocking wait. More...
#include <scheduler.hpp>
Public Attributes | |
| WaitPredicate | is_ready |
| Predicate that reports whether the requested value is available. | |
| WaitWakeupRegistration | notify_when_ready {} |
| Register a non-throwing wakeup, including when readiness races with registration. | |
Readiness predicate and optional targeted wakeup registration for a blocking wait.
| WaitPredicate uni20::async::IAsyncScheduler::WaitRequest::is_ready |
Predicate that reports whether the requested value is available.
| WaitWakeupRegistration uni20::async::IAsyncScheduler::WaitRequest::notify_when_ready {} |
Register a non-throwing wakeup, including when readiness races with registration.
Registration must not block waiting for readiness. Each registration must eventually notify when readiness becomes possible; inline notification is permitted. A wakeup does not reserve a resource, so a scheduler may recheck and register again. Retained callbacks may outlive the wait and must be safe to invoke afterwards. Required for pending TBB waits; polling schedulers may ignore it.