Skip to content

cf_cv_wait

Category: multithreading
GitHub: cute_multithreading.h


Causes the calling thread to wait on the condition variable.

CF_Result cf_cv_wait(CF_ConditionVariable* cv, CF_Mutex* mutex);
Parameters Description
cv The condition variable.
mutex The mutex used to access the condition variable.

Return Value

Returns any errors as a CF_Result.

Remarks

The thread will not wake until cf_cv_wake_all or cf_cv_wake_one is called.

CF_ConditionVariable
cf_make_cv
cf_destroy_cv
cf_cv_wake_all
cf_cv_wake_one