Codemesh Runtime v3 C++ API Reference
3.9.205
|
7 #ifndef xmog_atomic_pointer_inc
8 #define xmog_atomic_pointer_inc
16 #if !((XMOG_WINDOWS == 1) || \
17 (defined (__GNUC__) && defined (__i386)) \
19 # define XMOG_NEED_TO_EMULATE_ATOMIC
63 int operator == (
void * _rhs )
const
65 return value_ == _rhs;
73 int operator != (
void * _rhs )
const
75 return value_ != _rhs;
94 void *
volatile value_;
xmog_atomic_pointer(void *p)
Creates a pointer that is initialized to the given value.
Definition: xmog_atomic_pointer.h:40
xmog_atomic_pointer()
Creates a pointer that is initialized to NULL.
Definition: xmog_atomic_pointer.h:33
xmog_atomic_pointer(const xmog_atomic_pointer &_rhs)
Creates a pointer that is initialized to the same value as the given pointer.
Definition: xmog_atomic_pointer.h:48
void * value() const
Returns the pointer's value.
Definition: xmog_atomic_pointer.h:53
A utility class for thread safe compare exchange of pointer values.
Definition: xmog_atomic_pointer.h:26
Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.