nativeEvents, or -1 with errno set.Wait for native events from the active backend.
nativeEvents | Caller-provided output buffer for native events. |
timeoutMs | Wait timeout in milliseconds. -1 means infinite. |
nativeEvents, or -1 with errno set.