Lely core libraries
2.3.4
|
Go to the documentation of this file.
24 #ifndef LELY_IO2_CO_SIGSET_HPP_
25 #define LELY_IO2_CO_SIGSET_HPP_
43 auto signo = wait->signo;
73 #endif // !LELY_IO2_CO_SIGSET_HPP_
#define IO_SIGSET_WAIT_INIT(exec, func)
The static initializer for io_sigset_wait.
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
A wait operation suitable for use with a signal handler.
CoSignalSetWait() noexcept
Constructs a wait operation.
A wait operation, suitable for use with a signal handler, with a stackless coroutine as the completio...
An abstract task executor. This class is a wrapper around #ev_exec_t*.
int signo
The signal number, or 0 if the wait operation was canceled.
The parent class for function objects used as stackless coroutines.
ev::Executor get_executor() const noexcept
Returns the executor to which the completion task is (to be) submitted.
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.
virtual void operator()(int signo) noexcept=0
The coroutine to be executed once the wait operation completes (or is canceled).
CoSignalSetWait(ev_exec_t *exec) noexcept
Constructs a wait operation.
struct ev_task task
The task (to be) submitted upon completion (or cancellation) of the wait operation.
ev_exec_t * exec
A pointer to the executor to which the task is (to be) submitted.