ClassesClasses | | Operators

clear_barrierclear_barrierClearBarrierClearBarrier (Operator)

Name

clear_barrierclear_barrierClearBarrierClearBarrier — Destroy a barrier synchronization object.

Signature

clear_barrier( : : BarrierHandle : )

Herror clear_barrier(const Hlong BarrierHandle)

Herror T_clear_barrier(const Htuple BarrierHandle)

void ClearBarrier(const HTuple& BarrierHandle)

static void HOperatorSet.ClearBarrier(HTuple barrierHandle)

Description

clear_barrierclear_barrierClearBarrierClearBarrierClearBarrier destroys the barrier object given in BarrierHandleBarrierHandleBarrierHandleBarrierHandlebarrierHandle. No threads should be waiting on the barrier at the time clear_barrierclear_barrierClearBarrierClearBarrierClearBarrier is called. After calling clear_barrierclear_barrierClearBarrierClearBarrierClearBarrier, the barrier can no longer be used. The handle BarrierHandleBarrierHandleBarrierHandleBarrierHandlebarrierHandle becomes invalid.

Execution Information

Parameters

BarrierHandleBarrierHandleBarrierHandleBarrierHandlebarrierHandle (input_control)  barrier HBarrier, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Barrier synchronization object.

Result

If the barrier handle is valid, the operator clear_barrierclear_barrierClearBarrierClearBarrierClearBarrier returns 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

create_barriercreate_barrierCreateBarrierCreateBarrierCreateBarrier

See also

create_barriercreate_barrierCreateBarrierCreateBarrierCreateBarrier

Module

Foundation


ClassesClasses | | Operators