Electronics and Software
Engineering Innovation
Beam-lib  2.15.1

#include <BSemaphore.h>

Public Member Functions

 BSemaphoreBool ()
 
 BSemaphoreBool (const BSemaphoreBool &semaphore)
 
 ~BSemaphoreBool ()
 
void set (Bool on=1)
 
void clear ()
 
Bool wait (Bool v=1, BTimeout timeoutUs=BTimeoutForever)
 Wait for the semaphore. More...
 
Bool value ()
 
 operator int ()
 
int operator== (Bool on)
 
BSemaphoreBooloperator= (Bool on)
 

Private Attributes

BSemaphore osema
 
volatile Bool ovalue
 

Constructor & Destructor Documentation

◆ BSemaphoreBool() [1/2]

BSemaphoreBool::BSemaphoreBool ( )

◆ BSemaphoreBool() [2/2]

BSemaphoreBool::BSemaphoreBool ( const BSemaphoreBool semaphore)

◆ ~BSemaphoreBool()

BSemaphoreBool::~BSemaphoreBool ( )

Member Function Documentation

◆ clear()

void BSemaphoreBool::clear ( )

◆ operator int()

BSemaphoreBool::operator int ( )

◆ operator=()

BSemaphoreBool & BSemaphoreBool::operator= ( Bool  on)

◆ operator==()

int BSemaphoreBool::operator== ( Bool  on)

◆ set()

void BSemaphoreBool::set ( Bool  on = 1)

◆ value()

Bool BSemaphoreBool::value ( )

◆ wait()

Bool BSemaphoreBool::wait ( Bool  v = 1,
BTimeout  timeoutUs = BTimeoutForever 
)

Wait for the semaphore.

Member Data Documentation

◆ osema

BSemaphore BSemaphoreBool::osema
private

◆ ovalue

volatile Bool BSemaphoreBool::ovalue
private

The documentation for this class was generated from the following files: