zx_thread_exit


英文原文快照


名称

thread_exit —— 终止当前线程的执行

概要

  1. #include <zircon/syscalls.h>
  2. void zx_thread_exit(void);

描述

thread_exit() 的功能是停止运行当前运行的线程并退出。

信号ZX_THREAD_TERMINATED将在线程退出时在线程对象上被置位,并且可以通过在线程句柄上调用object_wait_one()object_wait_many() 来获取到。

权限

TODO(ZX-2399)

返回值

thread_exit() 不再返回。

另见

handle_close, handle_duplicate, object_wait_one, object_wait_many, thread_create, thread_start.