XX CMake Package
Loading...
Searching...
No Matches
XXLocker.h
Go to the documentation of this file.
1
#ifndef XXLockerH
2
#define XXLockerH
3
4
#include "
XXCompileTimeString.h
"
5
6
namespace
XX
7
{
10
11
template
<CompileTimeString tag>
12
class
Locker
13
{
14
public
:
16
Locker
();
17
~Locker
();
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
XXCompileTimeString.h
XX::Locker::engaged
static bool engaged()
check if some instance of a locker is active
XX::Locker::doOnce
static bool doOnce()
gives the ability to do something once
XX::Locker::Locker
Locker()
set the locker active
XX::Locker::~Locker
~Locker()
XX
Definition
XXPopulatedAbstract.h:11
XXCpp
XXLocker.h
Generated by
1.16.1