Mbed OS Reference
Loading...
Searching...
No Matches

Modules

 ConditionVariable class
 
 EventFlags class
 
 Mail class
 
 MemoryPool class
 
 Mutex class
 
 Queue class
 
 Semaphore class
 
 ThisThread namespace
 
 Thread class
 

Namespaces

namespace  rtos::Kernel
 Functions in the Kernel namespace control RTOS kernel information.
 

Typedefs

typedef mbed::ScopedLock< MutexScopedMutexLock
 Typedef for the mutex lock. More...
 

Detailed Description

Typedef Documentation

◆ ScopedMutexLock

Typedef for the mutex lock.

Usage:

void foo(Mutex &m) {
ScopedMutexLock lock(m);
// Mutex lock protects code in this block
}
RAII-style mechanism for owning a lock of Lockable object for the duration of a scoped block.
Definition: ScopedLock.h:63
The Mutex class is used to synchronize the execution of threads.
Definition: Mutex.h:70

Definition at line 51 of file Mutex.h.