HTL_thread_mutexattr_destroy
Destroys mutex attributes.
Interface Definition
int HTL_thread_mutexattr_destroy(HTL_thread_mutexattr_t *thread_mutexattr);
Description
HTL_thread_mutexattr_destroy() is used to destroy the resource of the mutex attribute thread_mutexattr and set thread_mutexattr to HTL_THREAD_MUTEX_ATTR_NULL.
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
thread_mutexattr |
HTL_thread_mutexattr_t * |
Handle to the mutex attribute. |
Input/Output |
Return Value
- HTL_THREAD_SUCCESS: success.
- Other values: failure. For details, see the error code descriptions.
Example
1 2 3 | HTL_thread_mutexattr_t mutex_attr; ret = HTL_thread_mutexattr_destroy(&mutex_attr); if ( ret != HTL_THREAD_SUCCESS) return; |
Parent topic: Mutex Attribute Functions