AsyncSignal

Enqueues a signal in the event loop of the AsyncSignal owner's thread, which allows a foreign thread to trigger the callback handler safely.

Constructors

this
this(EventLoop evl)

Members

Functions

kill
bool kill()

Cleans up underlying resources. This object must be run() again afterwards to be valid

run
bool run(void delegate() del)

Registers the signal handler in the event loop

trigger
bool trigger(EventLoop evl)
bool trigger()

Triggers the handler in its local thread

Properties

error
string error [@property getter]

Human-readable string describing the error

hasError
bool hasError [@property getter]
id
fd_t id [@property getter]
owner
Thread owner [@property getter]

Returns the Thread that created this object.

status
StatusInfo status [@property getter]

Used to diagnose errors when run() or kill() returns false

Meta