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

Tests round-robin scheduling of threads. More...

#include <ThreadSchedulingPolicyTestCase.hpp>

Inheritance diagram for distortos::test::ThreadSchedulingPolicyTestCase:
[legend]
Collaboration diagram for distortos::test::ThreadSchedulingPolicyTestCase:
[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 round-robin scheduling of threads.

Starts 8 small threads which same priority, making sure that they preempt each other (thanks to round-robin scheduling).

Member Function Documentation

◆ run_()

bool distortos::test::ThreadSchedulingPolicyTestCase::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: