distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::test::MutexPriorityTestCase Class Reference

Tests priority scheduling of mutexes. More...

#include <MutexPriorityTestCase.hpp>

Inheritance diagram for distortos::test::MutexPriorityTestCase:
[legend]
Collaboration diagram for distortos::test::MutexPriorityTestCase:
[legend]

Private Member Functions

bool run_ () const override
 Runs the test case. More...
 

Additional Inherited Members

- Public Member Functions inherited from distortos::test::TestCase
bool run () const
 Public function to start the test case. More...
 
- Protected Member Functions inherited from distortos::test::TestCaseCommon
bool finalize () const override
 Finalizes the test case. More...
 
bool initialize () const override
 Initializes the test case. More...
 

Detailed Description

Tests priority scheduling of mutexes.

Starts 8 small threads (in various order) with varying priorities which try to lock the same mutex, asserting that they succeed in the right order.

Member Function Documentation

◆ run_()

bool distortos::test::MutexPriorityTestCase::run_ ( ) const
overrideprivatevirtual

Runs the test case.

Returns
true if the test case succeeded, false otherwise

Implements distortos::test::TestCase.

Here is the call graph for this function:

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