CountingSelectEvent

CountingSelectEvent class -- calls the user-provided callback (passed to the constructor) when the event is fired from epoll. The trigger() method causes the event to fire. The number of calls to trigger() which occurred before the event fires is counted and passed to the callback.

Constructors

this
this(Handler handler)

Constructor.

Members

Aliases

Handler
alias Handler = bool delegate(ulong n)

Alias for event handler delegate. The return value indicates whether the event should remain registered with the epoll selector, or be unregistered after handling.

Functions

handle_
bool handle_(ulong n)

Called from handle() when the event fires.

Inherited Members

From ISelectEvent

events
Event events()

Returs: the epoll events to register for.

fileHandle
Handle fileHandle()

Required by ISelectable interface.

handle
bool handle(Event event)

Called from the select dispatcher when the event fires. Calls the abstract handle_() method.

handle_
bool handle_(ulong n)

Called from handle() when the event fires.

trigger
void trigger()

Triggers the event.

Meta