Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Dependents: denki-yohou_b TestY201 Network-RTOS NTPClient_HelloWorld ... more
Semaphore Class Reference
[Rtos]
The Semaphore class is used to manage and protect access to a set of shared resources. More...
#include <Semaphore.h>
Public Member Functions | |
Semaphore (int32_t count=0) | |
Create and Initialize a Semaphore object used for managing resources. | |
int32_t | wait (uint32_t millisec=osWaitForever) |
Wait until a Semaphore resource becomes available. | |
osStatus | release (void) |
Release a Semaphore resource that was obtain with Semaphore::wait. |
Detailed Description
The Semaphore class is used to manage and protect access to a set of shared resources.
Definition at line 33 of file Semaphore.h.
Constructor & Destructor Documentation
Semaphore | ( | int32_t | count = 0 ) |
Create and Initialize a Semaphore object used for managing resources.
- Parameters:
-
number of available resources; maximum index value is (count-1). (default: 0).
Definition at line 28 of file Semaphore.cpp.
Generated on Tue Jul 12 2022 11:27:30 by 1.7.2