Account
ArmsysApi 0.12.18 |
BSemaphoreBool Class Reference
#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) |
BSemaphoreBool & | operator= (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()
◆ 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
| private |
◆ ovalue
| private |
The documentation for this class was generated from the following files:
Generated by 1.8.15