IntrOS
Loading...
Searching...
No Matches
intros::Barrier Struct Reference

create and initialize a barrier object More...

#include <osbarrier.h>

Inheritance diagram for intros::Barrier:

Public Member Functions

constexpr Barrier (const unsigned _limit)
 constructor, see the constructor parameters of the class
 Barrier (Barrier &&_src)
 move constructor
 Barrier (const Barrier &)=delete
Barrier & operator= (Barrier &&)=delete
Barrier & operator= (const Barrier &)=delete
void reset ()
 bar_reset()
void kill ()
 bar_kill()
template<typename T>
int waitFor (const T &_delay)
 bar_waitFor()
template<typename T>
int waitUntil (const T &_time)
 bar_waitUntil()
int wait ()
 bar_wait()

Detailed Description

create and initialize a barrier object

Constructor parameters
  • limit: number of tasks that must call wait[Until|For] function to release the barrier object

The documentation for this struct was generated from the following file: