pthread_condattr_destroy Subroutine Purpose Deletes a condition attributes object. Library Threads Library (libpthreads.a) Syntax #include int pthread_condattr_destroy (attr) pthread_condattr_t *attr; Description 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. Parameter 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.