![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cInterlockedVal.h>
Public Member Functions | |
cInterlockedVal (TYPE nValue=0) noexcept | |
TYPE | Inc () noexcept |
void | IncV () noexcept |
TYPE | Dec () noexcept |
void | DecV () noexcept |
TYPE | AddX (TYPE nValue) noexcept |
TYPE | Exchange (TYPE nValue) noexcept |
TYPE | CompareExchange (TYPE nValue, TYPE lComparand=0) noexcept |
bool | SetIfEqual (TYPE nValue, TYPE lComparand=0) noexcept |
TYPE | operator++ () noexcept |
TYPE | operator-- () noexcept |
TYPE | get_Value () const noexcept |
void | put_Value (TYPE nVal) noexcept |
operator TYPE () const noexcept | |
const THIS_t & | operator= (TYPE nValNew) noexcept |
Protected Attributes | |
TYPE volatile | m_nValue |
This MUST be sizeof(TYPE) aligned?! __DECL_ALIGN(sizeof(TYPE)). More... | |
thread interlocked/safe int/long. Not needed if ! _MT thread safe unitary actions on a INT32 value (>=32 bits)
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
only if current m_nValue is lComparand set the new m_nValue to nValue
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
protected |
This MUST be sizeof(TYPE) aligned?! __DECL_ALIGN(sizeof(TYPE)).