eve.core.kqueue.dispatch
Event dispatch functions for the kqueue event loop.
This module contains the per-event-type dispatch logic that executes watcher callbacks in response to kqueue events, native EVFILT_TIMER expirations, and phase watcher triggers. Each function receives the host EventLoop by reference so it can access slots and DNS state.
The functions are package-visible to the eve.core.kqueue package only.
Functions 11
fn
int computePollTimeout(ref const EventLoop loop, int timeoutMs) pure @safe nothrow @nogcCompute the effective poll timeout.fn
bool hasPhaseOnlyWatchers(ref const EventLoop loop) @safe nothrow @nogcCheck whether only phase watchers remain active.fn
ptrdiff_t dispatchPhase(ref EventLoop loop, WatcherKind kind) @trusted nothrowDispatch all enabled watchers of the given phase kind.fn
ptrdiff_t countPhaseWatchers(ref const EventLoop loop, WatcherKind kind) pure @safe nothrow @nogcCount enabled phase watchers of the given kind.fn
bool dispatchWatcher(ref EventLoop loop, Token token) @trusted nothrowDispatch a generic (phase) watcher callback.fn
bool dispatchIo(ref EventLoop loop, Token token, IoReady ready) @trusted nothrowDispatch an I/O readiness event.fn
bool dispatchSignal(ref EventLoop loop, Token token,
ref const OsEvent nativeEvent) @trusted nothrowDispatch a signal delivery event from EVFILT_SIGNAL.fn
bool dispatchWakeup(ref EventLoop loop, Token token) @trusted nothrowDispatch an async wakeup event from EVFILT_USER.fn
bool dispatchOsEvent(ref EventLoop loop, OsEvent osEvent) @trusted nothrowRoute an OS event to the appropriate per-type dispatcher.fn
bool dispatchDns(ref EventLoop loop, Token token) @trusted nothrowDispatch a DNS resolution completion event.