Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cInterlockedInc Class Reference

#include <cInterlockedVal.h>

Public Member Functions

 cInterlockedInc (cInterlockedInt &count) noexcept
 
 ~cInterlockedInc () noexcept
 
int get_Count () const noexcept
 

Friends

class cInterlockedValTests
 

Detailed Description

Used as a thread safe check for code reentrancy. even on the same thread. like cLockableBase. define an instance of this on the stack. ALWAYS STACK BASED

Constructor & Destructor Documentation

◆ cInterlockedInc()

Gray::cInterlockedInc::cInterlockedInc ( cInterlockedInt &  count)
inlinenoexcept

◆ ~cInterlockedInc()

Gray::cInterlockedInc::~cInterlockedInc ( )
inlinenoexcept

Member Function Documentation

◆ get_Count()

int Gray::cInterlockedInc::get_Count ( ) const
inlinenoexcept

< get the count as it was when we created this.

Friends And Related Function Documentation

◆ cInterlockedValTests

friend class cInterlockedValTests
friend

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