distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
distortos::test::anonymous_namespace{SignalsInterruptionTestCase.cpp}::JoinTestStep Class Reference

test step for thread join More...

Inheritance diagram for distortos::test::anonymous_namespace{SignalsInterruptionTestCase.cpp}::JoinTestStep:
[legend]
Collaboration diagram for distortos::test::anonymous_namespace{SignalsInterruptionTestCase.cpp}::JoinTestStep:
[legend]

Public Member Functions

 JoinTestStep (SequenceAsserter &sequenceAsserter)
 JoinTestStep's constructor. More...
 
- Public Member Functions inherited from distortos::test::anonymous_namespace{SignalsInterruptionTestCase.cpp}::TestStep
constexpr TestStep (const uint8_t totalSequencePoints, const uint8_t expectedContextSwitchCount, const uint8_t signalingThreadSequencePoint1, const uint8_t signalHandlerSequencePoint, const uint8_t joinSequencePoint, const uint8_t signalingThreadSequencePoint2)
 TestStep's constructor. More...
 
virtual ~TestStep ()
 TestStep's virtual destructor. More...
 
bool run (SequenceAsserter &sequenceAsserter)
 Runs test step. More...
 
std::pair< uint8_t, uint8_t > getParameters () const
 Gets execution parameters of test step. More...
 

Private Member Functions

bool block () override
 Executes the action that will block current thread. More...
 

Private Attributes

DynamicThread sequencePointThread_
 internal thread that marks sequence point and is joined in block() More...
 

Detailed Description

test step for thread join

Constructor & Destructor Documentation

◆ JoinTestStep()

distortos::test::anonymous_namespace{SignalsInterruptionTestCase.cpp}::JoinTestStep::JoinTestStep ( SequenceAsserter sequenceAsserter)
inlineexplicit

JoinTestStep's constructor.

Parameters
[in]sequenceAsserteris a reference to shared SequenceAsserter object
Here is the call graph for this function:

Member Function Documentation

◆ block()

bool distortos::test::anonymous_namespace{SignalsInterruptionTestCase.cpp}::JoinTestStep::block ( )
inlineoverrideprivatevirtual

Executes the action that will block current thread.

Starts internal thread and joins it, ensuring that the function completes successfully.

Returns
true if execution of blocking action succeeded, false otherwise

Implements distortos::test::anonymous_namespace{SignalsInterruptionTestCase.cpp}::TestStep.

Member Data Documentation

◆ sequencePointThread_

DynamicThread distortos::test::anonymous_namespace{SignalsInterruptionTestCase.cpp}::JoinTestStep::sequencePointThread_
private

internal thread that marks sequence point and is joined in block()


The documentation for this class was generated from the following file: