11 #ifndef MERCURY_THREAD_MUTEX_H
12 #define MERCURY_THREAD_MUTEX_H
14 #include "mercury_util_config.h"
HG_UTIL_EXPORT int hg_thread_mutex_init(hg_thread_mutex_t *mutex)
Initialize the mutex.
HG_UTIL_EXPORT int hg_thread_mutex_destroy(hg_thread_mutex_t *mutex)
Destroy the mutex.
HG_UTIL_EXPORT int hg_thread_mutex_try_lock(hg_thread_mutex_t *mutex)
Try locking the mutex.
HG_UTIL_EXPORT int hg_thread_mutex_lock(hg_thread_mutex_t *mutex)
Lock the mutex.
pthread_mutex_t hg_thread_mutex_t
HG_UTIL_EXPORT int hg_thread_mutex_unlock(hg_thread_mutex_t *mutex)
Unlock the mutex.