#include <TestDoubleThreadFactory.h>
◆ TestDoubleThread()
TestDoubleOSWrapper::TestDoubleThread::TestDoubleThread |
( |
| ) |
|
|
inline |
◆ ~TestDoubleThread()
virtual TestDoubleOSWrapper::TestDoubleThread::~TestDoubleThread |
( |
| ) |
|
|
inlinevirtual |
◆ getInitialPriority()
virtual int TestDoubleOSWrapper::TestDoubleThread::getInitialPriority |
( |
| ) |
const |
|
inlinevirtual |
Get this thread priority when this thread was created.
- Returns
- Initial thread priority
Implements OSWrapper::Thread.
◆ getName()
virtual const char * TestDoubleOSWrapper::TestDoubleThread::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ getNativeHandle()
virtual void * TestDoubleOSWrapper::TestDoubleThread::getNativeHandle |
( |
| ) |
|
|
inlinevirtual |
Get the native handle of RTOS's thread.
- Returns
- native handle
Implements OSWrapper::Thread.
◆ getPriority()
virtual int TestDoubleOSWrapper::TestDoubleThread::getPriority |
( |
| ) |
const |
|
inlinevirtual |
◆ getStackSize()
virtual std::size_t TestDoubleOSWrapper::TestDoubleThread::getStackSize |
( |
| ) |
const |
|
inlinevirtual |
◆ isFinished()
virtual bool TestDoubleOSWrapper::TestDoubleThread::isFinished |
( |
| ) |
const |
|
inlinevirtual |
Return true if this thread is in the FINISHED state.
- Return values
-
true | This thread is in the FINISHED state |
false | This thread is not in the FINISHED state |
Implements OSWrapper::Thread.
◆ setCreateArgs()
void TestDoubleOSWrapper::TestDoubleThread::setCreateArgs |
( |
OSWrapper::Runnable * |
r, |
|
|
int |
priority, |
|
|
std::size_t |
stackSize, |
|
|
void * |
stackAddress, |
|
|
const char * |
name |
|
) |
| |
|
inline |
◆ setName()
virtual void TestDoubleOSWrapper::TestDoubleThread::setName |
( |
const char * |
name | ) |
|
|
inlinevirtual |
◆ setPriority()
virtual void TestDoubleOSWrapper::TestDoubleThread::setPriority |
( |
int |
priority | ) |
|
|
inlinevirtual |
◆ start()
virtual void TestDoubleOSWrapper::TestDoubleThread::start |
( |
| ) |
|
|
inlinevirtual |
Transit this thread to the READY state.
After this method, when this thread transits to the RUNNING state, this thread calls Runnable::run() specified at create().
- Note
- If this thread is already in the READY state, do nothing.
-
If this thread is finished, you can start() again.
Implements OSWrapper::Thread.
◆ timedWait()
Block the current thread until this thread transits to the FINISHED state but only within the limited time.
- Parameters
-
- Return values
-
OK | Success. This thread is in the FINISHED state |
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 queries the state without blocking.
-
If tmout is Timeout::FOREVER then this method waits forever until the condition is satisfied.
Implements OSWrapper::Thread.
◆ tryWait()
Query without blocking whether this thread is in the FINISHED state.
- Return values
-
OK | This thread is already in the FINISHED state |
TimedOut | This thread is not in the FINISHED state |
- Note
- Same as timedWait(Timeout::POLLING)
Implements OSWrapper::Thread.
◆ wait()
Block the current thread until this thread transits to the FINISHED state.
- Return values
-
OK | Success. This thread is in the FINISHED state |
CalledByNonThread | Called from non thread context (interrupt handler, timer, etc) |
- Note
- Same as timedWait(Timeout::FOREVER)
Implements OSWrapper::Thread.
◆ m_initialPriority
int TestDoubleOSWrapper::TestDoubleThread::m_initialPriority |
|
protected |
◆ m_name
const char* TestDoubleOSWrapper::TestDoubleThread::m_name |
|
protected |
◆ m_priority
int TestDoubleOSWrapper::TestDoubleThread::m_priority |
|
protected |
◆ m_runnable
◆ m_stackAddress
void* TestDoubleOSWrapper::TestDoubleThread::m_stackAddress |
|
protected |
◆ m_stackSize
std::size_t TestDoubleOSWrapper::TestDoubleThread::m_stackSize |
|
protected |
The documentation for this class was generated from the following file: