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

MutexOperationsTestCase class implementation. More...

Include dependency graph for MutexOperationsTestCase.cpp:

Namespaces

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

Functions

void distortos::test::anonymous_namespace{MutexOperationsTestCase.cpp}::lockUnlockThread (Mutex &mutex, bool &sharedRet, Mutex &semaphoreMutex)
 Simple thread that locks and unlocks the mutex, with additional correctness checks. More...
 
bool distortos::test::anonymous_namespace{MutexOperationsTestCase.cpp}::testUnlock (Mutex &mutex)
 Tests Mutex::unlock() - it must succeed immediately. More...
 
bool distortos::test::anonymous_namespace{MutexOperationsTestCase.cpp}::phase1 (const Mutex::Type type, const Mutex::Protocol protocol, const uint8_t priorityCeiling)
 Phase 1 of test case. More...
 
bool distortos::test::anonymous_namespace{MutexOperationsTestCase.cpp}::phase2 (const Mutex::Type type, const Mutex::Protocol protocol, const uint8_t priorityCeiling)
 Phase 2 of test case. More...
 
bool distortos::test::anonymous_namespace{MutexOperationsTestCase.cpp}::phase3 (const Mutex::Type type, const Mutex::Protocol protocol, const uint8_t priorityCeiling)
 Phase 3 of test case. More...
 

Variables

constexpr auto distortos::test::anonymous_namespace{MutexOperationsTestCase.cpp}::singleDuration = TickClock::duration{1}
 single duration used in tests More...
 
constexpr auto distortos::test::anonymous_namespace{MutexOperationsTestCase.cpp}::longDuration = singleDuration * 10
 long duration used in tests More...
 
constexpr uint8_t distortos::test::anonymous_namespace{MutexOperationsTestCase.cpp}::testThreadPriority {MutexOperationsTestCase::getTestCasePriority()}
 priority of current test thread and lock-unlock test thread More...
 
constexpr size_t distortos::test::anonymous_namespace{MutexOperationsTestCase.cpp}::testThreadStackSize {512}
 size of stack for test thread, bytes More...
 

Detailed Description

MutexOperationsTestCase class implementation.

Author
Copyright (C) 2014-2016 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/.