Consider the following code :
#include #include #include pthread_cond_t cond = PTHREAD_COND_INITIALIZER; ;