distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
callOnce.hpp File Reference

callOnce() header More...

Include dependency graph for callOnce.hpp:

Go to the source code of this file.

Namespaces

 distortos
 Top-level namespace of distortos project.
 

Functions

template<typename Function , typename... Args>
void distortos::callOnce (OnceFlag &onceFlag, Function &&function, Args &&... args)
 Executes the callable object exactly once, even if called from multiple threads. More...
 

Detailed Description

callOnce() header

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