1#ifndef TEST_DOUBLE_OS_WRAPPER_TEST_DOUBLE_EVENT_FLAG_FACTORY_H_INCLUDED
2#define TEST_DOUBLE_OS_WRAPPER_TEST_DOUBLE_EVENT_FLAG_FACTORY_H_INCLUDED
43 (void) releasedPattern;
62 (void) releasedPattern;
83 (void) releasedPattern;
128template <
typename T = TestDoubleEventFlag>
137 obj->setCreateArgs(autoReset);
143 delete static_cast<T*
>(e);
The container with bitwise operation like std::bitset.
Definition BitPattern.h:17
Definition EventFlagFactory.h:8
Abstract class that has functions of common RTOS's event flag.
Definition EventFlag.h:24
Container::BitPattern< unsigned int > Pattern
Type for bit pattern of EventFlag.
Definition EventFlag.h:40
Mode
Used as argument of the wait methods.
Definition EventFlag.h:32
Value object for the timeout.
Definition Timeout.h:11
Definition TestDoubleEventFlagFactory.h:129
TestDoubleEventFlagFactory()
Definition TestDoubleEventFlagFactory.h:131
virtual void destroy(OSWrapper::EventFlag *e)
Definition TestDoubleEventFlagFactory.h:141
virtual ~TestDoubleEventFlagFactory()
Definition TestDoubleEventFlagFactory.h:132
virtual OSWrapper::EventFlag * create(bool autoReset)
Definition TestDoubleEventFlagFactory.h:134
Definition TestDoubleEventFlagFactory.h:9
virtual OSWrapper::Error tryWaitAny()
Query without blocking whether any bit of this EventFlag is set ON.
Definition TestDoubleEventFlagFactory.h:47
virtual OSWrapper::Error set(OSWrapper::EventFlag::Pattern bitPattern)
Set the bits of bitPattern of this EventFlag object ON.
Definition TestDoubleEventFlagFactory.h:99
virtual OSWrapper::EventFlag::Pattern getCurrentPattern() const
Get current bit pattern of this EventFlag object.
Definition TestDoubleEventFlagFactory.h:122
virtual OSWrapper::Error wait(OSWrapper::EventFlag::Pattern bitPattern, OSWrapper::EventFlag::Mode waitMode, OSWrapper::EventFlag::Pattern *releasedPattern)
Block the current thread until the condition is satisfied.
Definition TestDoubleEventFlagFactory.h:39
virtual OSWrapper::Error resetOne(std::size_t pos)
Reset the bit at position pos of this EventFlag object OFF.
Definition TestDoubleEventFlagFactory.h:110
virtual OSWrapper::Error tryWait(OSWrapper::EventFlag::Pattern bitPattern, OSWrapper::EventFlag::Mode waitMode, OSWrapper::EventFlag::Pattern *releasedPattern)
Query without blocking whether the condition is satisfied.
Definition TestDoubleEventFlagFactory.h:58
virtual OSWrapper::Error setAll()
Set all the bits of this EventFlag object ON.
Definition TestDoubleEventFlagFactory.h:88
virtual OSWrapper::Error timedWait(OSWrapper::EventFlag::Pattern bitPattern, OSWrapper::EventFlag::Mode waitMode, OSWrapper::EventFlag::Pattern *releasedPattern, OSWrapper::Timeout tmout)
Block the current thread until the condition is satisfied but only within the limited time.
Definition TestDoubleEventFlagFactory.h:79
virtual OSWrapper::Error timedWaitAny(OSWrapper::Timeout tmout)
Block the current thread until any bit of this EventFlag is set ON but only within the limited time.
Definition TestDoubleEventFlagFactory.h:66
virtual OSWrapper::Error reset(OSWrapper::EventFlag::Pattern bitPattern)
Reset the bits of bitPattern of this EventFlag object OFF.
Definition TestDoubleEventFlagFactory.h:116
virtual OSWrapper::Error timedWaitOne(std::size_t pos, OSWrapper::Timeout tmout)
Block the current thread until the bit at position pos of this EventFlag is set ON but only within th...
Definition TestDoubleEventFlagFactory.h:72
virtual ~TestDoubleEventFlag()
Definition TestDoubleEventFlagFactory.h:24
void setCreateArgs(bool autoReset)
Definition TestDoubleEventFlagFactory.h:19
virtual OSWrapper::Error resetAll()
Reset all the bits of this EventFlag object OFF.
Definition TestDoubleEventFlagFactory.h:105
virtual OSWrapper::Error waitOne(std::size_t pos)
Block the current thread until the bit at position pos of this EventFlag is set ON.
Definition TestDoubleEventFlagFactory.h:33
virtual OSWrapper::Error waitAny()
Block the current thread until any bit of this EventFlag is set ON.
Definition TestDoubleEventFlagFactory.h:28
bool m_autoReset
Definition TestDoubleEventFlagFactory.h:11
virtual OSWrapper::Error tryWaitOne(std::size_t pos)
Query without blocking whether the bit at position pos of this EventFlag is set ON.
Definition TestDoubleEventFlagFactory.h:52
TestDoubleEventFlag()
Definition TestDoubleEventFlagFactory.h:14
virtual OSWrapper::Error setOne(std::size_t pos)
Set the bit at position pos of this EventFlag object ON.
Definition TestDoubleEventFlagFactory.h:93
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