Mercury
|
#include "mercury_util_config.h"
#include <pthread.h>
#include <errno.h>
Go to the source code of this file.
Typedefs | |
typedef pthread_mutex_t | hg_thread_mutex_t |
Functions | |
HG_UTIL_EXPORT int | hg_thread_mutex_init (hg_thread_mutex_t *mutex) |
Initialize the mutex. More... | |
HG_UTIL_EXPORT int | hg_thread_mutex_destroy (hg_thread_mutex_t *mutex) |
Destroy the mutex. More... | |
HG_UTIL_EXPORT int | hg_thread_mutex_lock (hg_thread_mutex_t *mutex) |
Lock the mutex. More... | |
HG_UTIL_EXPORT int | hg_thread_mutex_try_lock (hg_thread_mutex_t *mutex) |
Try locking the mutex. More... | |
HG_UTIL_EXPORT int | hg_thread_mutex_unlock (hg_thread_mutex_t *mutex) |
Unlock the mutex. More... | |
typedef pthread_mutex_t hg_thread_mutex_t |
Definition at line 21 of file mercury_thread_mutex.h.
HG_UTIL_EXPORT int hg_thread_mutex_init | ( | hg_thread_mutex_t * | mutex | ) |
Initialize the mutex.
mutex | [IN/OUT] pointer to mutex object |
HG_UTIL_EXPORT int hg_thread_mutex_destroy | ( | hg_thread_mutex_t * | mutex | ) |
Destroy the mutex.
mutex | [IN/OUT] pointer to mutex object |
HG_UTIL_EXPORT int hg_thread_mutex_lock | ( | hg_thread_mutex_t * | mutex | ) |
Lock the mutex.
mutex | [IN/OUT] pointer to mutex object |
HG_UTIL_EXPORT int hg_thread_mutex_try_lock | ( | hg_thread_mutex_t * | mutex | ) |
Try locking the mutex.
mutex | [IN/OUT] pointer to mutex object |
HG_UTIL_EXPORT int hg_thread_mutex_unlock | ( | hg_thread_mutex_t * | mutex | ) |
Unlock the mutex.
mutex | [IN/OUT] pointer to mutex object |