25#define LELY_IO_SIGSET_INLINE extern inline
36static void io_sigset_async_wait_func(
struct ev_task *
task);
49 async_wait->promise = promise;
51 exec, &io_sigset_async_wait_func);
56 *pwait = &async_wait->wait;
void ev_promise_release(ev_promise_t *promise)
Releases a reference to a promise.
ev_future_t * ev_promise_get_future(ev_promise_t *promise)
Returns (a reference to) a future associated with the specified promise.
int ev_promise_set(ev_promise_t *promise, void *value)
Satiesfies a promise, if it was not aready satisfied, and stores the specified value for retrieval by...
void * ev_promise_data(const ev_promise_t *promise)
Returns a pointer to the shared state of a promise.
ev_promise_t * ev_promise_create(size_t size, ev_promise_dtor_t *dtor)
Constructs a new promise with an optional empty shared state.
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
This header file is part of the I/O library; it contains the abstract signal handler interface.
const struct io_sigset_vtbl *const io_sigset_t
An abstract signal handler.
void io_sigset_submit_wait(io_sigset_t *sigset, struct io_sigset_wait *wait)
Submits a wait operation to a signal handler.
#define IO_SIGSET_WAIT_INIT(exec, func)
The static initializer for io_sigset_wait.
struct io_sigset_wait * io_sigset_wait_from_task(struct ev_task *task)
Obtains a pointer to a signal wait operation from a pointer to its completion task.
This is the public header file of the utilities library.
#define structof(ptr, type, member)
Obtains the address of a structure from the address of one of its members.
This is the internal header file of the I/O library.
A wait operation suitable for use with a signal handler.
struct ev_task task
The task (to be) submitted upon completion (or cancellation) of the wait operation.
int signo
The signal number, or 0 if the wait operation was canceled.