Initializes a specified condition variable.
#include <nks/synch.h> int NXCondInit ( NXCond_t *cond, void *arg);
(IN) Points to the condition variable to be initialized.
(IN) Is reserved for future use. Set to NULL.
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 NXCondInit on a previously initialized condition variable, no warning is given unless you are in DEBUG mode.