#include <sync.h>

Public Member Functions | |
| Lock (Mutex &m) | |
| ~Lock () | |
Note that this class will force the compiler to add exception support to the code, and this will increase code size by ~30KB (if you already use exceptions this will cause no code size overhead, however)
| miosix::Lock::Lock | ( | Mutex & | m | ) | [inline] |
Constructor: locks the mutex
| m | mutex to lock |
| miosix::Lock::~Lock | ( | ) | [inline] |
Destructor: unlocks the mutex
1.5.6