pthread_cond_destroy.txt

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

TXT
63
字号
pthread_cond_destroy SubroutinePurposeDeletes a condition variable.LibraryThreads Library (libpthreads.a)Syntax#include <pthread.h>int pthread_cond_destroy (condition)pthread_cond_t *condition;DescriptionThe pthread_cond_destroy subroutine deletes the condition variablecondition. After deletion of the condition variable, the conditionparameter is not valid until it is initialized again by a call tothe pthread_cond_init subroutine.Note:	The pthread.h header file must be the first included file ofeach source file using the threads library.Parametercondition	Specifies the condition variable to delete.Return ValuesUpon successful completion, 0 is returned. Otherwise, an error codeis returned.Error CodesThe pthread_cond_destroy subroutine is unsuccessful if the followingis true:EBUSY	The condition variable condition is referenced by another thread.EINVAL	The condition parameter is not valid.Implementation SpecificsThis subroutine is part of the Base Operating System (BOS) Runtime.Related InformationThe pthread_cond_init subroutine.Using Condition Variables.Threads Library Quick Reference.

⌨️ 快捷键说明

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