Cancel a timer.
#include <zircon/syscalls.h> zx_status_t zx_timer_cancel(zx_handle_t handle);
zx_timer_cancel() cancels a pending timer that was started with
Upon success the pending timer is canceled and the ZX_TIMER_SIGNALED
signal is de-asserted. If a new pending timer is immediately needed
rather than calling
zx_timer_cancel() first, call
with the new deadline.
handle must be of type ZX_OBJ_TYPE_TIMER and have ZX_RIGHT_WRITE.
zx_timer_cancel() returns ZX_OK on success.
In the event of failure, a negative error value is returned.
ZX_ERR_BAD_HANDLE handle is not a valid handle.
ZX_ERR_ACCESS_DENIED handle lacks the right ZX_RIGHT_WRITE.
Calling this function before
zx_timer_set() has no effect.
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.