Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayKernel::CKeInterlockedLong Struct Reference

#include <cKernel.h>

Public Member Functions

void Init (LONG lVal=0)
 
LONG Increment ()
 
LONG Decrement ()
 
LONG Exchange (LONG lVal=0)
 
LONG ExchangeAdd (LONG lValAdd)
 
LONG ExchangeIf (LONG lValCompare, LONG lVal=0)
 
 operator LONG () const
 

Public Attributes

LONG m_lVal
 

Detailed Description

LONG = 32 bit values interlocked in kernel.

Member Function Documentation

◆ Decrement()

LONG GrayKernel::CKeInterlockedLong::Decrement ( )
inline

◆ Exchange()

LONG GrayKernel::CKeInterlockedLong::Exchange ( LONG  lVal = 0)
inline

◆ ExchangeAdd()

LONG GrayKernel::CKeInterlockedLong::ExchangeAdd ( LONG  lValAdd)
inline

◆ ExchangeIf()

LONG GrayKernel::CKeInterlockedLong::ExchangeIf ( LONG  lValCompare,
LONG  lVal = 0 
)
inline

Only exchange if m_lVal is currently equal to lValCompare

Returns
lValCompare or m_lVal unchanged.

◆ Increment()

LONG GrayKernel::CKeInterlockedLong::Increment ( )
inline

◆ Init()

void GrayKernel::CKeInterlockedLong::Init ( LONG  lVal = 0)
inline

◆ operator LONG()

GrayKernel::CKeInterlockedLong::operator LONG ( ) const
inline

Member Data Documentation

◆ m_lVal

LONG GrayKernel::CKeInterlockedLong::m_lVal

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