pthread_cond_destroy()

destroy condition variable 

Function


SYNOPSIS

#include <pthread.h>

int pthread_cond_destroy(pthread_cond_t *cond);


DESCRIPTION

The pthread_cond_destroy() function destroys a previously initialized condition variable. The condition variable must not be used after it has been destroyed.


PARAMETERS

cond 

Is the condition variable to destroy.


RETURN VALUES

On success, pthread_cond_destroy() returns 0. On error, one of the following values is returned:

EINVAL 

cond does not refer to an initialized condition variable.

EBUSY 

The condition variable is in use by another thread (for example, in a condition wait).

EFAULT 

cond is an invalid pointer.


CONFORMANCE

POSIX P1003.1 (1996)


MULTITHREAD SAFETY LEVEL

MT-safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
pthread_cond_init()


PTC MKS Toolkit 10.4 Documentation Build 39.