#include <TestDoubleMutexFactory.h>
◆ TestDoubleMutex()
TestDoubleOSWrapper::TestDoubleMutex::TestDoubleMutex |
( |
| ) |
|
|
inline |
◆ ~TestDoubleMutex()
virtual TestDoubleOSWrapper::TestDoubleMutex::~TestDoubleMutex |
( |
| ) |
|
|
inlinevirtual |
◆ lock()
Block the current thread until locks this mutex.
- Return values
-
OK | Success. The current thread locked this mutex |
CalledByNonThread | Called from non thread context (interrupt handler, timer, etc) |
- Note
- Same as timedLock(Timeout::FOREVER)
Implements OSWrapper::Mutex.
◆ setCreateArgs()
void TestDoubleOSWrapper::TestDoubleMutex::setCreateArgs |
( |
int |
priorityCeiling | ) |
|
|
inline |
◆ timedLock()
Block the current thread until locks this mutex but only within the limited time.
- Parameters
-
- Return values
-
OK | Success. The current thread locked this mutex |
TimedOut | The limited time was elapsed |
CalledByNonThread | Called from non thread context (interrupt handler, timer, etc) |
- Note
- If tmout is Timeout::POLLING then this method tries to lock this mutex without blocking.
-
If tmout is Timeout::FOREVER then this method waits forever until locks this mutex.
Implements OSWrapper::Mutex.
◆ tryLock()
Try to lock this mutex without blocking.
- Return values
-
OK | Success. The current thread locked this mutex |
TimedOut | Failed. Other thread already locked this mutex |
- Note
- Same as timedLock(Timeout::POLLING)
Implements OSWrapper::Mutex.
◆ unlock()
Unlock this mutex that the current thread locks.
- Return values
-
OK | Success. The current thread unlocked this mutex |
NotLocked | The current thread has not locked this mutex |
Implements OSWrapper::Mutex.
◆ m_priorityCeiling
int TestDoubleOSWrapper::TestDoubleMutex::m_priorityCeiling |
|
protected |
The documentation for this class was generated from the following file: