pthread_condattr_destroy Subroutine


Deletes a condition attributes object.


Threads Library (libpthreads.a)



int pthread_condattr_destroy (attr)
pthread_condattr_t *attr;


The pthread_condattr_destroy subroutine deletes the condition attributes
object attr, reclaiming its storage space. It has no effect on the
condition variables previously created with that object.

Note:	The pthread.h header file must be the first included file of
each source file using the threads library.


attr	Specifes the condition attributes object to delete.

Return Values

Upon successful completion, 0 is returned. Otherwise, an error code
is returned.

Error Code

The pthread_condattr_destroy subroutine is unsuccessful if the following
is true:

EINVAL	The attr parameter is not valid.

Implementation Specifics

This subroutine is part of the Base Operating System (BOS) Runtime.

Related Information

The pthread_condattr_init subroutine, pthread_cond_init subroutine.

Using Condition Variables.

Threads Library Quick Reference.