EventDriverCore

Provides generic event loop control.

Members

Functions

clearExitFlag
void clearExitFlag()

Resets the exit flag.

exit
void exit()

Causes processEvents to return with ExitReason.exited as soon as possible.

processEvents
ExitReason processEvents(Duration timeout)

Runs the event loop to process a chunk of events.

rawUserData
void* rawUserData(StreamSocketFD descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)
void* rawUserData(DatagramSocketFD descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)

Low-level user data access. Use getUserData instead.

runInOwnerThread
void runInOwnerThread(ThreadCallbackGen fun, ThreadCallbackGenParams params)
void runInOwnerThread(void function(ARGS) @(safe) nothrow fun, ARGS args)

Executes a callback in the thread owning the driver.

waiterCount
size_t waiterCount()

The number of pending callbacks.

Properties

userData
deprecated FD userData [@property setter]

Deprecated - use EventDriverSockets.userData instead.

Meta