|
Miosix
2.01
|
#include <sync.h>
Public Types | |
| enum | Options { DEFAULT, RECURSIVE } |
Public Member Functions | |
| FastMutex (Options opt=DEFAULT) | |
| void | lock () |
| bool | tryLock () |
| void | unlock () |
| ~FastMutex () | |
Fast mutex without support for priority inheritance
|
inline |
Destructor
|
inline |
Locks the critical section. If the critical section is already locked, the thread will be queued in a wait list.
|
inline |
Acquires the lock only if the critical section is not already locked by other threads. Attempting to lock again a recursive mutex will fail, and the mutex' lock count will not be incremented.
|
inline |
Unlocks the critical section.