Rate This Document
Findability
Accuracy
Completeness
Readability

HTL_thread_cond_signal

Sends a condition variable signal to a waiting thread.

Interface Definition

int HTL_thread_cond_signal(HTL_thread_cond_t *thread_cond);

Description

HTL_thread_cond_signal() is used to send a condition variable signal to a waiting thread (waiter) that is being blocked by the condition variable thread_cond. Only one waiter will be woken up. The caller does not need to hold the mutex associated with thread_cond. This function is invalid if no waiter is currently blocked on thread_cond.

Parameters

Parameter

Type

Description

Input/Output

thread_cond

HTL_thread_cond_t *

Address of the handle to the condition variable.

Input

Return Value

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

Example

1
    HTL_thread_cond_signal(&cond);