Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
barrier.h File Reference
#include <Inventor/C/basic.h>
#include <Inventor/C/threads/common.h>

Go to the source code of this file.

Functions

cc_barriercc_barrier_construct (unsigned int numthreads)
 
void cc_barrier_destruct (cc_barrier *barrier)
 
int cc_barrier_enter (cc_barrier *barrier)
 

Function Documentation

◆ cc_barrier_construct()

cc_barrier* cc_barrier_construct ( unsigned int  count)

Constucts a new thread barrier.

◆ cc_barrier_destruct()

void cc_barrier_destruct ( cc_barrier barrier)

Destroys the barrier thread barrier.

◆ cc_barrier_enter()

int cc_barrier_enter ( cc_barrier barrier)

Increments the barrier counter. If equal to the number of threads it then enables all the threads to proceed.