Condition Variable Creation/Destruction In order to create a condition variable, we use the 'pthread_cond_init'. function: ... pthread_cond_t cond; /* will contain a condition var's data */ if (pthread_cond_init(&cond, NULL) != 0) { perror("pthread_cond_init"); exit(1); } Destroying the condition variable is done using 'pthread_cond_destroy': ... pthread_cond_destroy(&cond); ...