|
IntrOS
|
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()) | |
use a once flag object