barrier_dec

Decrements the barrier count.

Library:LibC
Classification:Other
Service:Synchronization

Syntax

  #include <synch.h>
   
  int   barrier_dec (
     barrier_t   *bp );
  

Parameters

bp

(IN) Points to the barrier.

Return Values

If successful, returns zero; otherwise, returns -1 and sets errno to the following:

Decimal

Constant

Description

105

ENOCONTEXT

The calling thread has no context.

Remarks

The barrier_dec function decreases, by one, the number of threads that must reach the barrier.

See Also