miosix::Lock Class Reference
[Syncronization]
#include <sync.h>
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
miosix::Lock::Lock |
( |
Mutex & |
m |
) |
[inline] |
Constructor: locks the mutex
- Parameters:
-
miosix::Lock::~Lock |
( |
|
) |
[inline] |
Destructor: unlocks the mutex
Member Function Documentation
Mutex& miosix::Lock::get |
( |
|
) |
[inline] |
The documentation for this class was generated from the following file:
- /Users/fede/Documents/Projects/ARM/miosix/miosix_np_2/miosix/kernel/sync.h