createWakeupHandle

fnHandle createWakeupHandle() @trusted nothrow @nogc

Create an eventfd handle for wakeup notifications.

Creates a non-blocking eventfd with close-on-exec flag set. The eventfd counter starts at zero and can be incremented by writing and read/reset by reading.

Returns

A valid Handle wrapping the eventfd descriptor on success, or an

invalid Handle if eventfd creation fails.

See Also

writeWakeup, readWakeup