distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
callOnce() header More...
#include "distortos/internal/CHECK_FUNCTION_CONTEXT.hpp"
#include "distortos/OnceFlag.hpp"
#include "estd/invoke.hpp"
#include <mutex>
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... | |
callOnce() header