销毁线程属性。
int HTL_thread_attr_destroy(HTL_thread_attr_t *thread_attr);
HTL_thread_attr_destroy()销毁线程属性thread_attr的资源,并将thread_attr设置为HTL_THREAD_ATTR_NULL。
参数名 |
类型 |
描述 |
输入/输出 |
---|---|---|---|
thread_attr |
HTL_thread_attr_t * |
线程属性句柄的地址。 |
输入/输出 |
/* Free the attribute */ ret = HTL_thread_attr_destroy(&attr);