distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
mutexTestTryLockWhenLocked.hpp
Go to the documentation of this file.
1 
12 #ifndef TEST_MUTEX_MUTEXTESTTRYLOCKWHENLOCKED_HPP_
13 #define TEST_MUTEX_MUTEXTESTTRYLOCKWHENLOCKED_HPP_
14 
15 #include <cstdint>
16 
17 namespace distortos
18 {
19 
20 class Mutex;
21 
22 namespace test
23 {
24 
36 bool mutexTestTryLockWhenLocked(Mutex& mutex, uint8_t priority = UINT8_MAX);
37 
38 } // namespace test
39 
40 } // namespace distortos
41 
42 #endif // TEST_MUTEX_MUTEXTESTTRYLOCKWHENLOCKED_HPP_
Top-level namespace of distortos project.
bool mutexTestTryLockWhenLocked(Mutex &mutex, const uint8_t priority)
Tests Mutex::tryLock() when mutex is locked - it must succeed immediately and return EBUSY...
Definition: mutexTestTryLockWhenLocked.cpp:43