The PlatformMutex class is used to synchronize the execution of threads. More...
#include <PlatformMutex.h>
Public Member Functions | |
| PlatformMutex () | |
| Create a PlatformMutex object. More... | |
| ~PlatformMutex () | |
| PlatformMutex destructor. More... | |
| void | lock () |
| Wait until a PlatformMutex becomes available. More... | |
| void | unlock () |
| Unlock a PlatformMutex that the same thread has previously locked. More... | |
The PlatformMutex class is used to synchronize the execution of threads.
Mbed drivers use the PlatformMutex class instead of rtos::Mutex. This enables the use of drivers when the Mbed OS is compiled without the RTOS.
Definition at line 47 of file PlatformMutex.h.
| PlatformMutex | ( | ) |
Create a PlatformMutex object.
Definition at line 53 of file PlatformMutex.h.
| ~PlatformMutex | ( | ) |
PlatformMutex destructor.
Definition at line 61 of file PlatformMutex.h.
| void lock | ( | void | ) |
Wait until a PlatformMutex becomes available.
Definition at line 71 of file PlatformMutex.h.
| void unlock | ( | void | ) |
Unlock a PlatformMutex that the same thread has previously locked.
Definition at line 81 of file PlatformMutex.h.