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

handler
void handler()
Undocumented in source. Be warned that the author may not have intended to support it.
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

Mixins

__anonymous
mixin EvInfoMixinsShared
Undocumented in source.

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

Mixed In Members

From mixin EvInfoMixinsShared

CleanupData
struct CleanupData
Undocumented in source.
pthreadId
pthread_t pthreadId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
threadId
size_t threadId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
evInfo
shared(EventInfo*) evInfo [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
evInfo
shared(EventInfo*) evInfo [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta