API for platform independent mutex synchronization primitive.
typedef struct ConditionVariable* HConditionVariable;
Create a new HConditionVariable
condition_variable - A new ConditionVariable handle.
Deletes a HConditionVariable.
mutex - ConditionVariable handle to delete.
Wait for condition variable. This is a blocking function, and should be called with the mutex being locked.
condition - ConditionVariable handle.
mutex - Mutex handle.
Signal condition variable, effectively unblocks at least one of the waiting threads blocked by the condition variable.
condition - ConditionVariable handle.
Broadcast condition variable, effectively unblocks all of the waiting threads blocked by the condition variable.
condition - ConditionVariable handle.