Generic Lightweight Thread (GLT) Library
2.5
A common API for Lightweight Thread solutions
|
Functions | |
void | glt_mutex_create (GLT_mutex *mutex) |
Creates a mutex. More... | |
void | glt_mutex_lock (GLT_mutex mutex) |
Locks a mutex. More... | |
void | glt_mutex_unlock (GLT_mutex mutex) |
Unlocks a mutex. More... | |
void | glt_mutex_free (GLT_mutex *mutex) |
Destroys a mutex. More... | |
void | glt_mutex_trylock (GLT_bool *locked, GLT_mutex mutex) |
Tries to lock a mutex. More... | |
These functions manage the GLT mutexes for the ULTs.
void glt_mutex_create | ( | GLT_mutex * | mutex | ) |
Creates a mutex.
glt_mutex_create()
creates a mutex for ULTs.
[in,out] | mutex | Hande to newly created GLT_mutex |
void glt_mutex_free | ( | GLT_mutex * | mutex | ) |
Destroys a mutex.
glt_mutex_free()
destroys a mutex for ULTs.
[in] | mutex | Handle to the target GLT_mutex . |
void glt_mutex_lock | ( | GLT_mutex | mutex | ) |
Locks a mutex.
glt_mutex_lock()
locks (if possible) a mutex.
[in] | mutex | Handle to the target GLT_mutex . |
Tries to lock a mutex.
glt_mutex_trylock()
tries to lock a mutex.
[in] | mutex | Handle to the target GLT_mutex . |
[out] | locked | GLT_bool with the value 1 if the mutex has been locked or 0 if it was not possible. |
void glt_mutex_unlock | ( | GLT_mutex | mutex | ) |
Unlocks a mutex.
glt_mutex_unlock()
unlocks a mutex.
[in] | mutex | Handle to the target GLT_mutex . |