Lely core libraries 2.3.4
lely::io::CoSignalSetWait Class Referenceabstract

A wait operation, suitable for use with a signal handler, with a stackless coroutine as the completion task. More...

#include <co_sigset.hpp>

Inheritance diagram for lely::io::CoSignalSetWait:
Collaboration diagram for lely::io::CoSignalSetWait:

Public Member Functions

 CoSignalSetWait (ev_exec_t *exec) noexcept
 Constructs a wait operation.
 
 CoSignalSetWait () noexcept
 Constructs a wait operation.
 
ev::Executor get_executor () const noexcept
 Returns the executor to which the completion task is (to be) submitted.
 
virtual void operator() (int signo) noexcept=0
 The coroutine to be executed once the wait operation completes (or is canceled).
 
- Public Member Functions inherited from lely::util::Coroutine
void restart () noexcept
 Resets the stackless coroutine so the next invocation starts at the beginning.
 
bool is_ready () const noexcept
 Returns true if the stackless coroutine has finished.
 
bool is_parent () const noexcept
 Returns true if the stackless coroutine is the parent of a fork.
 
bool is_child () const noexcept
 Returns true if the stackless coroutine is the child of a fork.
 

Additional Inherited Members

- Data Fields inherited from io_sigset_wait
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.
 

Detailed Description

A wait operation, suitable for use with a signal handler, with a stackless coroutine as the completion task.

Definition at line 37 of file co_sigset.hpp.

Member Function Documentation

◆ operator()()

virtual void lely::io::CoSignalSetWait::operator() ( int  signo)
pure virtualnoexcept

The coroutine to be executed once the wait operation completes (or is canceled).

Parameters
signothe signal number, or -1 if the operation is canceled.

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