HTL_thread_attr_destroy
Destroys the thread attribute.
Interface Definition
int HTL_thread_attr_destroy(HTL_thread_attr_t *thread_attr);
Description
HTL_thread_attr_destroy() destroys the resource of the thread attribute (thread_attr) and sets thread_attr to HTL_THREAD_ATTR_NULL.
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
thread_attr |
HTL_thread_attr_t * |
Address of the handle to the thread attribute. |
Input/Output |
Return Value
- HTL_THREAD_SUCCESS: success.
- Other values: failure. For details, see the error code descriptions.
Example
/* Free the attribute */
ret = HTL_thread_attr_destroy(&attr);
Parent topic: Thread Attribute Functions