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

CallOnceOperationsTestCase class implementation. More...

Include dependency graph for CallOnceOperationsTestCase.cpp:

Namespaces

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

Typedefs

using distortos::test::anonymous_namespace{CallOnceOperationsTestCase.cpp}::SequencePoints = std::pair< unsigned int, unsigned int >
 pair of sequence points More...
 

Functions

void distortos::test::anonymous_namespace{CallOnceOperationsTestCase.cpp}::function (SequenceAsserter &sequenceAsserter)
 Test function passed to callOnce(). More...
 
void distortos::test::anonymous_namespace{CallOnceOperationsTestCase.cpp}::thread (SequenceAsserter &sequenceAsserter, const SequencePoints sequencePoints, OnceFlag &onceFlag, TickClock::time_point &timePoint)
 Test thread function. More...
 
DynamicThread distortos::test::anonymous_namespace{CallOnceOperationsTestCase.cpp}::makeTestThread (const size_t stackSize, const uint8_t priority, SequenceAsserter &sequenceAsserter, const SequencePoints sequencePoints, OnceFlag &onceFlag, TickClock::time_point &timePoint)
 Builder of test threads. More...
 

Variables

constexpr auto distortos::test::anonymous_namespace{CallOnceOperationsTestCase.cpp}::sleepForDuration = TickClock::duration{10}
 sleepFor() duration used in function() passed to callOnce() More...
 
constexpr size_t distortos::test::anonymous_namespace{CallOnceOperationsTestCase.cpp}::testThreadHighStackSize {768}
 size of stack for first test thread, bytes More...
 
constexpr size_t distortos::test::anonymous_namespace{CallOnceOperationsTestCase.cpp}::testThreadLowStackSize {512}
 size of stack for remaining test threads, bytes More...
 
constexpr size_t distortos::test::anonymous_namespace{CallOnceOperationsTestCase.cpp}::totalThreads {8}
 number of test threads More...
 

Detailed Description

CallOnceOperationsTestCase class implementation.

Author
Copyright (C) 2015-2017 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/.