pthread_testcancel.txt

来自「Pthread lib库完整说明文档」· 文本 代码 · 共 44 行

TXT
44
字号
pthread_testcancel SubroutinePurposeCreates a cancellation point in the calling thread.LibraryThreads Library (libpthreads.a)Syntax#include <pthread.h>void pthread_testcancel ()DescriptionThe pthread_testcancel subroutine creates a cancellation point inthe calling thread. If a cancellation request is pending, and cancelabilityenabled, the cancellation is performed and the thread is terminated.Note:	The pthread.h header file must be the first included file ofeach source file using the threads library.Implementation SpecificsThis subroutine is part of the Base Operating System (BOS) Runtime.Related InformationThe pthread_cancel subroutine, pthread_setcancelstate subroutine,pthread_setcanceltype subroutine.Terminating Threads.Threads Library Quick Reference.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?