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

Functions

void thread (SequenceAsserter &sequenceAsserter, const unsigned int sequencePoint, ConditionVariable &conditionVariable, Mutex &mutex)
 Test thread. More...
 
DynamicThread makeTestThread (const ThreadParameters &threadParameters, SequenceAsserter &sequenceAsserter, ConditionVariable &conditionVariable, Mutex &mutex)
 Builder of test threads. More...
 

Variables

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

Function Documentation

◆ makeTestThread()

DynamicThread distortos::test::anonymous_namespace{ConditionVariablePriorityTestCase.cpp}::makeTestThread ( const ThreadParameters threadParameters,
SequenceAsserter sequenceAsserter,
ConditionVariable conditionVariable,
Mutex mutex 
)

Builder of test threads.

Parameters
[in]threadParametersis a reference to ThreadParameters object
[in]sequenceAsserteris a reference to SequenceAsserter shared object
[in]conditionVariableis a reference to shared condition variable
[in]mutexis a reference to shared mutex
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{ConditionVariablePriorityTestCase.cpp}::thread ( SequenceAsserter sequenceAsserter,
const unsigned int  sequencePoint,
ConditionVariable conditionVariable,
Mutex mutex 
)

Test thread.

Locks the mutex, waits for condition variable, marks the sequence point in SequenceAsserter and unlocks the mutex.

Parameters
[in]sequenceAsserteris a reference to SequenceAsserter shared object
[in]sequencePointis the sequence point of this instance
[in]conditionVariableis a reference to shared condition variable
[in]mutexis a reference to shared mutex
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{ConditionVariablePriorityTestCase.cpp}::testThreadStackSize {512}

size of stack for test thread, bytes