|
Nexus Embedded Platform 1.0.0
Statically assembled reusable embedded mechanisms
|
Optional sequence-latched waiting without hidden workers. More...
#include "nexus/core/status.h"#include "nexus/core/time.h"#include <stdbool.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | nx_wait_port_t |
| Single-waiter notification port. More... | |
Functions | |
| nx_result_t | nx_wait_until (const nx_wait_port_t *port, bool(*ready)(void *), void *context, uint64_t deadline_us) |
| Wait for an authoritative caller predicate. | |
Optional sequence-latched waiting without hidden workers.
Definition in file wait.h.
| nx_result_t nx_wait_until | ( | const nx_wait_port_t * | port, |
| bool(* | ready )(void *), | ||
| void * | context, | ||
| uint64_t | deadline_us ) |
Wait for an authoritative caller predicate.
| [in] | port | Live single-waiter notification port |
| [in] | ready | Bounded predicate, called in caller context |
| [in] | context | Predicate context, retained for this call only |
| [in] | deadline_us | Absolute deadline in port's clock domain, or NX_DEADLINE_NEVER; no wall-clock or relative values |