IntrOS
Loading...
Searching...
No Matches
intros::OnceFlag Struct Reference

use a once flag object More...

#include <osonceflag.h>

Public Member Functions

constexpr OnceFlag ()
 constructor, see the constructor parameters of the class
 OnceFlag (OnceFlag &&)=default
 move constructor
 OnceFlag (const OnceFlag &)=delete
OnceFlag & operator= (OnceFlag &&)=delete
OnceFlag & operator= (const OnceFlag &)=delete
template<typename Callable, typename... Args>
void call (Callable &&_fun, Args &&... _args)
 call _fun(_args...) once, like std::call_once (one_call())

Detailed Description

use a once flag object

Note
the once flag is set before the function is called, so another caller (another task or a timer callback, when the function gives up the processor, or an interrupt handler) does not wait for the completion of the function

The documentation for this struct was generated from the following file: