A utility class for thread safe compare exchange of pointer values.
More...
#include <xmog_atomic_pointer.h>
A utility class for thread safe compare exchange of pointer values.
◆ xmog_atomic_pointer() [1/2]
xmog_atomic_pointer::xmog_atomic_pointer |
( |
void * |
p | ) |
|
|
inline |
Creates a pointer that is initialized to the given value.
- Parameters
-
◆ xmog_atomic_pointer() [2/2]
Creates a pointer that is initialized to the same value as the given pointer.
- Parameters
-
◆ operator!=()
int xmog_atomic_pointer::operator!= |
( |
void * |
_rhs | ) |
const |
|
inline |
Compares the instance to a pointer value for inequality.
- Parameters
-
_rhs | the value to compare to. |
◆ operator=() [1/2]
Assigns a new value to the pointer.
- Parameters
-
◆ operator=() [2/2]
Performs an exchange operation between the two pointers.
- Parameters
-
◆ operator==()
int xmog_atomic_pointer::operator== |
( |
void * |
_rhs | ) |
const |
|
inline |
Compares the instance to a pointer value for equality.
- Parameters
-
_rhs | the value to compare to. |
The documentation for this class was generated from the following file: