1#ifndef TEST_DOUBLE_OS_WRAPPER_TEST_DOUBLE_MUTEX_FACTORY_H_INCLUDED
2#define TEST_DOUBLE_OS_WRAPPER_TEST_DOUBLE_MUTEX_FACTORY_H_INCLUDED
50template <
typename T = TestDoubleMutex>
64 obj->setCreateArgs(priorityCeiling);
70 delete static_cast<T*
>(m);
Definition MutexFactory.h:8
Abstract class that has functions of common RTOS's mutex.
Definition Mutex.h:22
Value object for the timeout.
Definition Timeout.h:11
Definition TestDoubleMutexFactory.h:51
TestDoubleMutexFactory()
Definition TestDoubleMutexFactory.h:53
virtual OSWrapper::Mutex * create(int priorityCeiling)
Definition TestDoubleMutexFactory.h:61
virtual OSWrapper::Mutex * create()
Definition TestDoubleMutexFactory.h:56
virtual void destroy(OSWrapper::Mutex *m)
Definition TestDoubleMutexFactory.h:68
virtual ~TestDoubleMutexFactory()
Definition TestDoubleMutexFactory.h:54
Definition TestDoubleMutexFactory.h:9
virtual OSWrapper::Error tryLock()
Try to lock this mutex without blocking.
Definition TestDoubleMutexFactory.h:33
int m_priorityCeiling
Definition TestDoubleMutexFactory.h:11
virtual OSWrapper::Error unlock()
Unlock this mutex that the current thread locks.
Definition TestDoubleMutexFactory.h:44
virtual ~TestDoubleMutex()
Definition TestDoubleMutexFactory.h:24
virtual OSWrapper::Error timedLock(OSWrapper::Timeout tmout)
Block the current thread until locks this mutex but only within the limited time.
Definition TestDoubleMutexFactory.h:38
TestDoubleMutex()
Definition TestDoubleMutexFactory.h:14
void setCreateArgs(int priorityCeiling)
Definition TestDoubleMutexFactory.h:19
virtual OSWrapper::Error lock()
Block the current thread until locks this mutex.
Definition TestDoubleMutexFactory.h:28
Error
Kinds of errors of the OS objects.
Definition OSWrapperError.h:9
@ OK
Definition OSWrapperError.h:10
Implementation of OSWrapper for Test Double.
Definition TestDoubleEventFlagFactory.h:7