KqueueWakeup.triggerWakeup

void triggerWakeup(int kq, ulong userData, size_t ident = 0) static @trusted nothrow @nogc

Trigger a wakeup by posting an EVFILT_USER event with NOTE_TRIGGER.

This is safe to call from any thread. The userData value is packed into kevent.udata so the receiving loop can identify the wakeup source.

Parameters

kqThe kqueue file descriptor.
userDataOpaque value stored in kevent.udata.
identOptional ident for the EVFILT_USER filter. Defaults to 0 for the shared wakeup filter.