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

Typedefs

using SequencePoints = std::pair< unsigned int, unsigned int >
 pair of sequence points More...
 

Functions

void thread (SequenceAsserter &sequenceAsserter, const SequencePoints sequencePoints, Semaphore &semaphore)
 Test thread. More...
 
DynamicThread makeTestThread (const unsigned int firstSequencePoint, const ThreadParameters &threadParameters, SequenceAsserter &sequenceAsserter, Semaphore &semaphore)
 Builder of test threads. More...
 

Variables

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

Typedef Documentation

◆ SequencePoints

using distortos::test::anonymous_namespace{SemaphorePriorityTestCase.cpp}::SequencePoints = typedef std::pair<unsigned int, unsigned int>

pair of sequence points

Function Documentation

◆ makeTestThread()

DynamicThread distortos::test::anonymous_namespace{SemaphorePriorityTestCase.cpp}::makeTestThread ( const unsigned int  firstSequencePoint,
const ThreadParameters threadParameters,
SequenceAsserter sequenceAsserter,
Semaphore semaphore 
)

Builder of test threads.

Parameters
[in]firstSequencePointis the first sequence point for this instance - equal to the order in which this thread will be started
[in]threadParametersis a reference to ThreadParameters object
[in]sequenceAsserteris a reference to SequenceAsserter shared object
[in]semaphoreis a reference to shared semaphore
Returns
constructed DynamicThread object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread()

void distortos::test::anonymous_namespace{SemaphorePriorityTestCase.cpp}::thread ( SequenceAsserter sequenceAsserter,
const SequencePoints  sequencePoints,
Semaphore semaphore 
)

Test thread.

Marks the first sequence point in SequenceAsserter, waits for the semaphore and marks the last sequence point in SequenceAsserter.

Parameters
[in]sequenceAsserteris a reference to SequenceAsserter shared object
[in]sequencePointsis a pair of sequence points for this instance
[in]semaphoreis a reference to shared semaphore
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{SemaphorePriorityTestCase.cpp}::testThreadStackSize {512}

size of stack for test thread, bytes