Google is committed to advancing racial equity for Black communities. See how.

zx_thread_exit

NAME

Terminate the current running thread.

SYNOPSIS

#include <zircon/syscalls.h>

[[noreturn]] void zx_thread_exit(void);

DESCRIPTION

zx_thread_exit() causes the currently running thread to cease running and exit.

The signal ZX_THREAD_TERMINATED will be asserted on the thread object upon exit and may be observed via zx_object_wait_one() or zx_object_wait_many() on a handle to the thread.

RIGHTS

TODO(ZX-2399)

RETURN VALUE

zx_thread_exit() does not return.

SEE ALSO