ArmSys Support
ArmsysApi  0.12.18

#include <BSemaphore.h>

Public Member Functions

 BSemaphoreBool ()
 
 BSemaphoreBool (const BSemaphoreBool &semaphore)
 
 ~BSemaphoreBool ()
 
Bool set (Bool on=1)
 
Bool clear ()
 
Bool wait (Bool v=1, BTimeout timeoutUs=BTimeoutForever)
 Wait for the semaphore. Returns 1 if obtsined 0 on timeout. 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()

Bool BSemaphoreBool::clear ( )

◆ operator int()

BSemaphoreBool::operator int ( )

◆ operator=()

BSemaphoreBool & BSemaphoreBool::operator= ( Bool  on)

◆ operator==()

int BSemaphoreBool::operator== ( Bool  on)

◆ set()

Bool BSemaphoreBool::set ( Bool  on = 1)

◆ value()

Bool BSemaphoreBool::value ( )

◆ wait()

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

Wait for the semaphore. Returns 1 if obtsined 0 on timeout.

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: