readWakeup

fnint readWakeup(Handle handle) @trusted nothrow @nogc

Check and reset a Windows Event.

Checks if the event is currently signaled (non-blocking). If it is, the event is reset to the nonsignaled state.

Parameters

handleThe Event handle to check.

Returns

0 if the event was signaled (and has been reset), or -1 if

the event was not signaled or an error occurred.