11 #ifndef MERCURY_THREAD_CONDITION_H
12 #define MERCURY_THREAD_CONDITION_H
84 unsigned int timeout);
HG_UTIL_EXPORT int hg_thread_cond_destroy(hg_thread_cond_t *cond)
Destroy the condition.
HG_UTIL_EXPORT int hg_thread_cond_wait(hg_thread_cond_t *cond, hg_thread_mutex_t *mutex)
Wait for the condition to change.
HG_UTIL_EXPORT int hg_thread_cond_broadcast(hg_thread_cond_t *cond)
Wake all the threads waiting for the condition to change.
pthread_mutex_t hg_thread_mutex_t
HG_UTIL_EXPORT int hg_thread_cond_init(hg_thread_cond_t *cond)
Initialize the condition.
pthread_cond_t hg_thread_cond_t
HG_UTIL_EXPORT int hg_thread_cond_signal(hg_thread_cond_t *cond)
Wake one thread waiting for the condition to change.
HG_UTIL_EXPORT int hg_thread_cond_timedwait(hg_thread_cond_t *cond, hg_thread_mutex_t *mutex, unsigned int timeout)
Wait timeout ms for the condition to change.