Create an event.
#include <zircon/syscalls.h> zx_status_t zx_event_create(uint32_t options, zx_handle_t* out);
zx_event_create() creates an event, which is an object that is signalable. That
is, its ZX_USER_SIGNAL_n (where n is 0 through 7) signals can be
The newly-created handle will have the basic rights plus ZX_RIGHT_SIGNAL.
zx_event_create() returns ZX_OK and a valid event handle (via out) on success.
On failure, an error value is returned.
ZX_ERR_INVALID_ARGS out is an invalid pointer, or options is nonzero.
ZX_ERR_NO_MEMORY Failure due to lack of memory. There is no good way for userspace to handle this (unlikely) error. In a future build this error will no longer occur.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-11-21.