pthread_exit.man
来自「linux 下的线程库源码」· MAN 代码 · 共 33 行
MAN
33 行
.TH PTHREAD_EXIT 3 LinuxThreads.SH NAMEpthread_exit \- terminate the calling thread.SH SYNOPSIS#include <pthread.h>void pthread_exit(void *retval);.SH DESCRIPTION!pthread_exit! terminates the execution of the calling thread.All cleanup handlers that have been set for the calling thread with!pthread_cleanup_push!(3) are executed in reverse order (the mostrecently pushed handler is executed first). Finalization functions forthread-specific data are then called for all keys that have non-!NULL!values associated with them in the calling thread (see!pthread_key_create!(3)). Finally, execution of the calling thread isstopped.The |retval| argument is the return value of the thread. It can beconsulted from another thread using !pthread_join!(3)..SH "RETURN VALUE"The !pthread_exit! function never returns..SH AUTHORXavier Leroy <Xavier.Leroy@inria.fr>.SH "SEE ALSO"!pthread_create!(3),!pthread_join!(3).
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?