#include <sync.h>
Public Member Functions | |
Unlock (Lock &l) | |
Unlock (Mutex &m) | |
~Unlock () | |
Mutex & | get () |
Mutex m; //Mutex unlocked { Lock dLock(m); //Now mutex locked { Unlock eLock(dLock); //Now mutex back unlocked } //Now mutex again locked } //Finally mutex unlocked
miosix::Unlock::Unlock | ( | Lock & | l | ) | [inline] |
Constructor, unlock mutex.
l | the Lock that locked the mutex. |
miosix::Unlock::Unlock | ( | Mutex & | m | ) | [inline] |
Constructor, unlock mutex.
m | a locked mutex. |
miosix::Unlock::~Unlock | ( | ) | [inline] |
Destructor. Disable back interrupts.
Mutex& miosix::Unlock::get | ( | ) | [inline] |