XX CMake Package
Loading...
Searching...
No Matches
XXLocker.h
Go to the documentation of this file.
1#ifndef XXLockerH
2#define XXLockerH
3
5
6namespace XX
7{
10
11 template <CompileTimeString tag>
12 class Locker
13 {
14 public:
18
19 public:
21 static bool engaged();
23 static bool doOnce();
24
25 private:
26 static bool lock;
27 };
28} // namespace XX
29
30#ifndef XXLockerHPP
31#include "XXLocker.hpp"
32#endif // NOT XXLockerHPP
33
34#endif // NOT XXLockerH
static bool engaged()
check if some instance of a locker is active
static bool doOnce()
gives the ability to do something once
Locker()
set the locker active
Definition XXPopulatedAbstract.h:11