HTL_thread_mutex_unlock
Releases a mutex.
Interface Definition
int HTL_thread_mutex_unlock(HTL_thread_mutex_t *thread_mutex);
Description
HTL_thread_mutex_unlock() releases the mutex thread_mutex. If thread_mutex is recursive and locked multiple times, the caller must call this function as many times as the locking function is called.
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
thread_mutex |
HTL_thread_mutex_t * |
Address of the handle to the mutex. |
Input |
Return Value
- HTL_THREAD_SUCCESS: success.
- Other values: failure. For details, see the error code descriptions.
Example
1 2 3 | int ret; ret = HTL_thread_mutex_unlock(&mutex); if ( ret != HTL_THREAD_SUCCESS) return; |
Parent topic: Mutex Functions