µEvLoop
A fast and lightweight event loop aimed at embedded platforms in C99.
|
Go to the documentation of this file.
63 uel_signal_relay_t *relay,
64 uel_syspools_t *pools,
65 uel_sysqueues_t *queues,
80 uel_signal_relay_t *relay,
81 uel_closure_t *closure
95 uel_signal_relay_t *relay,
96 uel_closure_t *closure
127 uel_signal_relay_t *relay,
128 uel_promise_t *promise
141 uel_signal_relay_t *relay,
142 uel_promise_t *promise
uel_signal_listener_t uel_signal_resolve_promise(uel_signal_t signal, uel_signal_relay_t *relay, uel_promise_t *promise)
Attaches a non-repeating listener that resolves the provided promise upon emission.
void uel_signal_emit(uel_signal_t signal, uel_signal_relay_t *relay, void *params)
Emits a signal at the supplied relay. Any closure listening to this signal will be asynchronously inv...
uintptr_t uel_signal_t
Definition: signal.h:22
uel_signal_listener_t uel_signal_reject_promise(uel_signal_t signal, uel_signal_relay_t *relay, uel_promise_t *promise)
Attaches a non-repeating listener that rejects the provided promise upon emission.
Defines a simple implementation of linked lists and functions to manipulate it.
uel_syspools_t * pools
A quick reference to the system's internal pools.
Definition: signal.h:48
Defines closures, objects that bind functions to creating and calling contexts.
uel_sysqueues_t * queues
Definition: signal.h:46
Contains a signal vector and operates on in.
Definition: signal.h:40
Defines events and methods to configure events.
uel_signal_listener_t uel_signal_listen_once(uel_signal_t signal, uel_signal_relay_t *relay, uel_closure_t *closure)
Attaches a listener closure to some signal at a particular relay. The listener closure will be invoke...
Contains definitions for promise stores, promises and functions to manipulate them.
uel_llist_t * signal_vector
Definition: signal.h:43
uel_signal_listener_t uel_signal_listen(uel_signal_t signal, uel_signal_relay_t *relay, uel_closure_t *closure)
Attaches a listener closure to some signal at a particular relay.
A container for the system's internal queues.
void uel_signal_unlisten(uel_signal_listener_t listener)
Marks a signal listener as expired. When its corresponding signal is emitted, this listener's closure...
struct uel_event_listener * uel_signal_listener_t
Defines a reference type suitable to manipulate the actual listener event's context.
Definition: signal.h:27
void uel_signal_relay_init(uel_signal_relay_t *relay, uel_syspools_t *pools, uel_sysqueues_t *queues, uel_llist_t *buffer, uintptr_t width)
Initialises a signal relay.
uintptr_t width
The number of signals registered at this relay.
Definition: signal.h:50
A container for the system's internal pools.