Defines | |
#define | AXIS2_THREAD_MUTEX_DEFAULT 0x0 |
#define | AXIS2_THREAD_MUTEX_NESTED 0x1 |
#define | AXIS2_THREAD_MUTEX_UNNESTED 0x2 |
Typedefs | |
typedef axis2_thread_mutex_t | axis2_thread_mutex_t |
Functions | |
AXIS2_EXTERN axis2_thread_mutex_t * | axis2_thread_mutex_create (axis2_allocator_t *allocator, unsigned int flags) |
AXIS2_EXTERN axis2_status_t | axis2_thread_mutex_lock (axis2_thread_mutex_t *mutex) |
AXIS2_EXTERN axis2_status_t | axis2_thread_mutex_trylock (axis2_thread_mutex_t *mutex) |
AXIS2_EXTERN axis2_status_t | axis2_thread_mutex_unlock (axis2_thread_mutex_t *mutex) |
AXIS2_EXTERN axis2_status_t | axis2_thread_mutex_destroy (axis2_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.
|