Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::SchedulerClock Struct Reference

Borrowed clock service, invoked under the scheduler mutex on UI or producer threads. read must be thread-safe, nonblocking and non-reentrant. Context must outlive Scheduler; stopped publishers never read it. Null read selects the steady clock. More...

#include <scheduler.hpp>

Public Types

using Reader = SchedulerTime (*)(void *) noexcept
 Read monotonic milliseconds from the borrowed context; cannot throw or reenter the scheduler.

Public Attributes

Reader read {}
 Monotonic millisecond reader.
void * context {}
 Borrowed reader context.

Detailed Description

Borrowed clock service, invoked under the scheduler mutex on UI or producer threads. read must be thread-safe, nonblocking and non-reentrant. Context must outlive Scheduler; stopped publishers never read it. Null read selects the steady clock.


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