Rate This Document
Findability
Accuracy
Completeness
Readability

HTL_thread_cond_destroy

Destroys a condition variable.

Interface Definition

int HTL_thread_cond_destroy(HTL_thread_cond_t *thread_cond);

Description

HTL_thread_cond_destroy() is used to destroy the resource of the condition variable thread_cond and set thread_cond to HTL_THREAD_COND_NULL.

Parameters

Parameter

Type

Description

Input/Output

thread_cond

HTL_thread_cond_t *

Address of the handle to the condition variable.

Input/Output

Return Value

  • HTL_THREAD_SUCCESS: success.
  • Other values: failure. For details, see the error code descriptions.

Example

1
2
3
4
    int ret;
    HTL_thread_cond_t cond = HTL_THREAD_COND_NULL;
    ret = HTL_thread_cond_init(&cond, NULL);
    ret = HTL_thread_cond_destroy(&cond);