?? pthread_cleanup_pop.txt
字號:
pthread_cleanup_pop SubroutinePurposeRemoves, and optionally executes, the routine at the top of the callingthread's cleanup stack.LibraryThreads Library (libpthreads.a)Syntax#include <pthread.h>void pthread_cleanup_pop (execute)int execute;DescriptionThe pthread_cleanup_pop subroutine removes the routine at the topof the calling thread's cleanup stack. If the execute parameter isnon-zero, the routine is executed.The cleanup stack is a LIFO (last in first out) stack, used for performingall cleanups necessary for safe thread termination.The pthread_cleanup_pop subroutine must be in the same function andin the same block of statements than the corresponding call to thepthread_cleanup_push subroutine. Otherwise, the compiler may failcompiling the program, or the program would have an unpredictablebehaviour when porting to other systems. The reason is that, on non-AIXsystems, the pthread_cleanup_pop subroutine may be implemented asa macro closing a block of statements.Note: The pthread.h header file must be the first included file ofeach source file using the threads library.Parametersexecute Specifies if the popped routine will be executed.Implementation SpecificsThis subroutine is part of the Base Operating System (BOS) Runtime.Related InformationThe pthread_cleanup_push subroutine, pthread_exit subroutine.Terminating Threads.Threads Library Quick Reference.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -