⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pthread_cleanup_pop.txt

📁 Pthread lib库完整说明文档
💻 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 + -