Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayKernel::CKeInterlockedPtr< TYPE > Struct Template Reference

#include <cKernel.h>

Inheritance diagram for GrayKernel::CKeInterlockedPtr< TYPE >:
GrayKernel::CKeInterlockedPtrX< TYPE >

Public Member Functions

void InitPtr (TYPE *pVal=nullptr)
 
TYPEExchange (TYPE *pVal=nullptr)
 
TYPEExchangeIf (TYPE *pValCompare, TYPE *pVal=nullptr)
 
 operator TYPE * () const
 
TYPE *& InitRef ()
 

Public Attributes

TYPEm_pVal
 

Detailed Description

template<class TYPE>
struct GrayKernel::CKeInterlockedPtr< TYPE >

No initializer

Member Function Documentation

◆ Exchange()

template<class TYPE >
TYPE* GrayKernel::CKeInterlockedPtr< TYPE >::Exchange ( TYPE pVal = nullptr)
inline
Returns
the previous value before the exchange.

◆ ExchangeIf()

template<class TYPE >
TYPE* GrayKernel::CKeInterlockedPtr< TYPE >::ExchangeIf ( TYPE pValCompare,
TYPE pVal = nullptr 
)
inline

Only exchange if m_pVal is currently equal to pValCompare

◆ InitPtr()

template<class TYPE >
void GrayKernel::CKeInterlockedPtr< TYPE >::InitPtr ( TYPE pVal = nullptr)
inline

◆ InitRef()

template<class TYPE >
TYPE*& GrayKernel::CKeInterlockedPtr< TYPE >::InitRef ( )
inline

◆ operator TYPE *()

template<class TYPE >
GrayKernel::CKeInterlockedPtr< TYPE >::operator TYPE * ( ) const
inline

Member Data Documentation

◆ m_pVal

template<class TYPE >
TYPE* GrayKernel::CKeInterlockedPtr< TYPE >::m_pVal

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