distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
distortos::test::anonymous_namespace{ThreadPriorityChangeTestCase.cpp} Namespace Reference

Functions

void thread (SequenceAsserter &sequenceAsserter, const unsigned int sequencePoint)
 Test thread. More...
 
DynamicThread makeAndStartTestThread (const uint8_t priority, SequenceAsserter &sequenceAsserter, const unsigned int sequencePoint)
 Makes and starts test thread. More...
 

Variables

constexpr size_t testThreadStackSize {512}
 size of stack for test thread, bytes More...
 
constexpr size_t totalThreads {8}
 number of test threads More...
 

Function Documentation

◆ makeAndStartTestThread()

DynamicThread distortos::test::anonymous_namespace{ThreadPriorityChangeTestCase.cpp}::makeAndStartTestThread ( const uint8_t  priority,
SequenceAsserter sequenceAsserter,
const unsigned int  sequencePoint 
)

Makes and starts test thread.

Parameters
[in]priorityis the thread's priority
[in]sequenceAsserteris a reference to SequenceAsserter shared object
[in]sequencePointis the sequence point of this instance
Returns
constructed and started DynamicThread object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread()

void distortos::test::anonymous_namespace{ThreadPriorityChangeTestCase.cpp}::thread ( SequenceAsserter sequenceAsserter,
const unsigned int  sequencePoint 
)

Test thread.

Just marks the sequence point in SequenceAsserter.

Parameters
[in]sequenceAsserteris a reference to SequenceAsserter shared object
[in]sequencePointis the sequence point of this instance
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ testThreadStackSize

constexpr size_t distortos::test::anonymous_namespace{ThreadPriorityChangeTestCase.cpp}::testThreadStackSize {512}

size of stack for test thread, bytes

◆ totalThreads

constexpr size_t distortos::test::anonymous_namespace{ThreadPriorityChangeTestCase.cpp}::totalThreads {8}

number of test threads