Initializes a specified condition variable.
#include <synch.h> int cond_init ( cond_t *cvp, int type, int arg );
(IN) Points to the condition variable to be initialized.
(IN) Specifies the type of condition variable with one of the following flags:
(IN) Reserved for future use. Set to 0.
If successful, returns zero; otherwise, returns a nonzero error code:
Condition variables can be used to support event-based synchronization where a lock or a semaphore might not be appropriate.
If you call cond_init on a previously initialized condition variable, no warning is given unless you are in DEBUG mode.