KqueueWakeup.triggerWakeup
void triggerWakeup(int kq, ulong userData, size_t ident = 0) static @trusted nothrow @nogcTrigger 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
kq | The kqueue file descriptor. |
userData | Opaque value stored in kevent.udata. |
ident | Optional ident for the EVFILT_USER filter. Defaults to 0 for the shared wakeup filter. |