Use pthread_condattr_destroy(3T) to remove storage and render the attribute object invalid.
Prototype: int pthread_condattr_destroy(pthread_condattr_t *cattr);
#include <pthread.h pthread_condattr_t cattr; int ret; /* destroy an attribute */ ret = pthread_condattr_destroy(&cattr);
pthread_condattr_destroy() returns zero after completing successfully. Any other returned value indicates that an error occurred. If the following condition occurs, the function fails and returns the corresponding value.