Defines | |
#define | AXIS2_THREAD_MUTEX_DEFAULT 0x0 |
#define | AXIS2_THREAD_MUTEX_NESTED 0x1 |
#define | AXIS2_THREAD_MUTEX_UNNESTED 0x2 |
Typedefs | |
typedef axutil_thread_mutex_t | axutil_thread_mutex_t |
Functions | |
AXIS2_EXTERN axutil_thread_mutex_t * | axutil_thread_mutex_create (axutil_allocator_t *allocator, unsigned int flags) |
AXIS2_EXTERN axis2_status_t | axutil_thread_mutex_lock (axutil_thread_mutex_t *mutex) |
AXIS2_EXTERN axis2_status_t | axutil_thread_mutex_trylock (axutil_thread_mutex_t *mutex) |
AXIS2_EXTERN axis2_status_t | axutil_thread_mutex_unlock (axutil_thread_mutex_t *mutex) |
AXIS2_EXTERN axis2_status_t | axutil_thread_mutex_destroy (axutil_thread_mutex_t *mutex) |
|
platform-optimal lock behavior |
|
enable nested (recursive) locks |
|
disable nested locks |
|
Opaque thread-local mutex structure |
|
Create and initialize a mutex that can be used to synchronize threads.
|
|
Destroy the mutex and free the memory associated with the lock.
|
|
Acquire the lock for the given mutex. If the mutex is already locked, the current thread will be put to sleep until the lock becomes available.
|
|
Attempt to acquire the lock for the given mutex. If the mutex has already been acquired, the call returns immediately
|
|
Release the lock for the given mutex.
|