Beamlib 3.5.2
This is the Beam C++ class library.
Loading...
Searching...
No Matches
BSemaphoreBool Class Reference

Boolean semaphore. More...

#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.
 
Bool value ()
 
 operator int ()
 
int operator== (Bool on)
 
BSemaphoreBool & operator= (Bool on)
 

Detailed Description

Boolean semaphore.

Constructor & Destructor Documentation

◆ BSemaphoreBool() [1/2]

BSemaphoreBool::BSemaphoreBool ( )

◆ BSemaphoreBool() [2/2]

BSemaphoreBool::BSemaphoreBool ( const BSemaphoreBool & semaphore)

◆ ~BSemaphoreBool()

BSemaphoreBool::~BSemaphoreBool ( )

Member Function Documentation

◆ set()

void BSemaphoreBool::set ( Bool on = 1)

◆ clear()

void BSemaphoreBool::clear ( )

◆ wait()

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

Wait for the semaphore.

◆ value()

Bool BSemaphoreBool::value ( )

◆ operator int()

BSemaphoreBool::operator int ( )

◆ operator==()

int BSemaphoreBool::operator== ( Bool on)

◆ operator=()

BSemaphoreBool & BSemaphoreBool::operator= ( Bool on)

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