1# zx_thread_exit 2 3## NAME 4 5thread_exit - terminate the current running thread 6 7## SYNOPSIS 8 9``` 10#include <zircon/syscalls.h> 11 12void zx_thread_exit(void); 13 14``` 15 16## DESCRIPTION 17 18**thread_exit**() causes the currently running thread to cease 19running and exit. 20 21The signal *ZX_THREAD_TERMINATED* will be assserted on the thread 22object upon exit and may be observed via *object_wait_one*() 23or *object_wait_many*() on a handle to the thread. 24 25## RIGHTS 26 27TODO(ZX-2399) 28 29## RETURN VALUE 30 31**thread_exit**() does not return. 32 33## SEE ALSO 34 35[handle_close](handle_close.md), 36[handle_duplicate](handle_duplicate.md), 37[object_wait_one](object_wait_one.md), 38[object_wait_many](object_wait_many.md), 39[thread_create](thread_create.md), 40[thread_start](thread_start.md). 41