XX CMake Package
Loading...
Searching...
No Matches
XX::Locker< tag > Class Template Reference

a locker class to prevent executions of code More...

#include <XXLocker.h>

Detailed Description

template<CompileTimeString tag>
class XX::Locker< tag >

a locker class to prevent executions of code

Public Member Functions

 Locker ()
 set the locker active
 ~Locker ()

Static Public Member Functions

static bool engaged ()
 check if some instance of a locker is active
static bool doOnce ()
 gives the ability to do something once

Constructor & Destructor Documentation

◆ Locker()

template<CompileTimeString tag>
XX::Locker< tag >::Locker ( )

set the locker active

◆ ~Locker()

template<CompileTimeString tag>
XX::Locker< tag >::~Locker ( )

Member Function Documentation

◆ doOnce()

template<CompileTimeString tag>
bool XX::Locker< tag >::doOnce ( )
static

gives the ability to do something once

◆ engaged()

template<CompileTimeString tag>
bool XX::Locker< tag >::engaged ( )
static

check if some instance of a locker is active


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