Miosix
2.0alpha1
|
#include <sync.h>
Public Member Functions | |
Lock (T &m) | |
~Lock () | |
T & | get () |
Very simple RAII style class to lock a mutex in an exception-safe way. Mutex is acquired by the constructor and released by the destructor.
|
inlineexplicit |
Constructor: locks the mutex
m | mutex to lock |
|
inline |
Destructor: unlocks the mutex
|
inline |