HTL_thread_barrier_destroy
Destroys a barrier.
Interface Definition
int HTL_thread_barrier_destroy(HTL_thread_barrier_t *thread_barrier);
Description
HTL_thread_barrier_destroy() releases barrier resources and sets barrier to HTL_THREAD_BARRIER_NULL.
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
thread_barrier |
HTL_thread_barrier_t * |
Address of the handle to the barrier. |
Input/Output |
Return Value
- HTL_THREAD_SUCCESS: success.
- Other values: failure. For details, see the error code descriptions.
Example
ret = HTL_thread_barrier_destroy(&thread_barrier);
Parent topic: Barrier Functions