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

mutexTestTryLockWhenLocked() implementation More...

#include "mutexTestTryLockWhenLocked.hpp"
#include "waitForNextTick.hpp"
#include "distortos/DynamicThread.hpp"
#include "distortos/Mutex.hpp"
#include <cerrno>
Include dependency graph for mutexTestTryLockWhenLocked.cpp:

Namespaces

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

Functions

bool distortos::test::mutexTestTryLockWhenLocked (Mutex &mutex, uint8_t priority=UINT8_MAX)
 Tests Mutex::tryLock() when mutex is locked - it must succeed immediately and return EBUSY. More...
 

Variables

constexpr size_t distortos::test::anonymous_namespace{mutexTestTryLockWhenLocked.cpp}::testThreadStackSize {512}
 size of stack for test thread, bytes More...
 

Detailed Description

mutexTestTryLockWhenLocked() 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/.