distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
MutexPriorityProtectOperationsTestCase.cpp File Reference

MutexPriorityProtectOperationsTestCase class implementation. More...

#include "MutexPriorityProtectOperationsTestCase.hpp"
#include "waitForNextTick.hpp"
#include "distortos/assert.h"
#include "distortos/Mutex.hpp"
#include "distortos/ThisThread.hpp"
#include <tuple>
#include <cerrno>
Include dependency graph for MutexPriorityProtectOperationsTestCase.cpp:

Namespaces

 distortos
 Top-level namespace of distortos project.
 
 distortos::test
 Functional tests of distortos project.
 

Functions

bool distortos::test::anonymous_namespace{MutexPriorityProtectOperationsTestCase.cpp}::testInvalidLockAttempt (const Mutex::Type type)
 Tests invalid lock attempts. More...
 
bool distortos::test::anonymous_namespace{MutexPriorityProtectOperationsTestCase.cpp}::testPriorityChanges (const Mutex::Type type)
 Tests changes of priority resulting from locking mutexes with PriorityProtect protocol. More...
 

Variables

constexpr auto distortos::test::anonymous_namespace{MutexPriorityProtectOperationsTestCase.cpp}::singleDuration = TickClock::duration{1}
 single duration used in tests More...
 
constexpr uint8_t distortos::test::anonymous_namespace{MutexPriorityProtectOperationsTestCase.cpp}::testThreadPriority {MutexPriorityProtectOperationsTestCase::getTestCasePriority()}
 priority of current test thread More...
 

Detailed Description

MutexPriorityProtectOperationsTestCase class implementation.

Author
Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.