Account
ArmsysApi 0.12.18 |
BSemaphore Class Reference
Semaphore class. More...
#include <BSemaphore.h>
Public Member Functions | |
BSemaphore () | |
BSemaphore (const BSemaphore &semaphore) | |
~BSemaphore () | |
Bool | wait (BTimeout timeoutUs=BTimeoutForever) |
Wait for the semaphore, Returns 1 if obtsined 0 on timeout. More... | |
Bool | set () |
Set the semaphore, returns 1 if another task needs to run. More... | |
Bool | setFromIsr () |
Set the semaphore from an IRQ handler, returns 1 if another task needs to run. More... | |
void | clear () |
BSemaphore & | operator= (const BSemaphore &semaphore) |
Private Attributes | |
SemaphoreHandle_t | osemaphore |
Detailed Description
Semaphore class.
Constructor & Destructor Documentation
◆ BSemaphore() [1/2]
BSemaphore::BSemaphore | ( | ) |
◆ BSemaphore() [2/2]
BSemaphore::BSemaphore | ( | const BSemaphore & | semaphore | ) |
◆ ~BSemaphore()
BSemaphore::~BSemaphore | ( | ) |
Member Function Documentation
◆ clear()
void BSemaphore::clear | ( | ) |
◆ operator=()
BSemaphore & BSemaphore::operator= | ( | const BSemaphore & | semaphore | ) |
◆ set()
Bool BSemaphore::set | ( | ) |
Set the semaphore, returns 1 if another task needs to run.
◆ setFromIsr()
Bool BSemaphore::setFromIsr | ( | ) |
Set the semaphore from an IRQ handler, returns 1 if another task needs to run.
◆ wait()
Bool BSemaphore::wait | ( | BTimeout | timeoutUs = BTimeoutForever | ) |
Wait for the semaphore, Returns 1 if obtsined 0 on timeout.
Member Data Documentation
◆ osemaphore
| private |
The documentation for this class was generated from the following files:
Generated by 1.8.15