Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Attributes | List of all members
uni20::async::IAsyncScheduler::WaitRequest Struct Reference

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.
 

Detailed Description

Readiness predicate and optional targeted wakeup registration for a blocking wait.

Member Data Documentation

◆ is_ready

WaitPredicate uni20::async::IAsyncScheduler::WaitRequest::is_ready

Predicate that reports whether the requested value is available.

◆ notify_when_ready

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.


The documentation for this struct was generated from the following file: