This routine initializes a condition variable (cond) with the
Threads Library default condition variable attributes.
A condition variable is a synchronization object used with a
mutex. A mutex controls access to shared data. When threads are
present, a condition variable allows threads to wait for data to
enter a defined state.
For more information about actions taken when threads are
present, refer to the pthread_cond_init() description.
Your program can use the macro PTHREAD_COND_INITIALIZER to
initialize statically allocated condition variables to the
default condition variable attributes. Static initialization
can be used only for a condition variable with storage class
"extern" or "static" - "automatic" (stack local) objects must
be initialized by calling tis_cond_init(). Use this macro as
follows:
pthread_cond_t condition = PTHREAD_COND_INITIALIZER;
When statically initialized, a condition variable should not also
be initialized using tis_cond_init().