|
HDK
|
#include <SYS_AtomicPtr.h>
Public Types | |
| typedef T | value_type |
| typedef T * | pointer |
Public Member Functions | |
| SYS_AtomicPtr (T *value=0) | |
| T * | exchange (T *val) |
| T * | compare_swap (T *expected, T *desired) |
| operator T * () const | |
| Atomically obtain myValue. More... | |
| T * | operator-> () const |
| Uses T *() for atomic indirection. More... | |
| T * | relaxedLoad () const |
| void | relaxedStore (T *val) |
Static Public Member Functions | |
| static bool | compare_exchange_strong (T *volatile *ptr_addr, T *expected, T *desired) |
Definition at line 20 of file SYS_AtomicPtr.h.
| typedef T* SYS_AtomicPtr< T >::pointer |
Definition at line 25 of file SYS_AtomicPtr.h.
| typedef T SYS_AtomicPtr< T >::value_type |
Definition at line 24 of file SYS_AtomicPtr.h.
|
inlineexplicit |
Definition at line 28 of file SYS_AtomicPtr.h.
|
static |
Atomically compares (ptr_ref == expected), and if true, replaces ptr_ref with desired and returns true. Else, returns false.
Definition at line 93 of file SYS_AtomicPtr.h.
|
inline |
Atomically compares (myValue == expected), and if true, replaces myValue with desired. Returns prior myValue.
Definition at line 83 of file SYS_AtomicPtr.h.
|
inline |
Atomically assigns val to myValue, returning the prior value of myValue.
Definition at line 75 of file SYS_AtomicPtr.h.
| SYS_AtomicPtr< T >::operator T * | ( | ) | const |
Atomically obtain myValue.
Definition at line 106 of file SYS_AtomicPtr.h.
|
inline |
Uses T *() for atomic indirection.
Definition at line 51 of file SYS_AtomicPtr.h.
|
inline |
Definition at line 53 of file SYS_AtomicPtr.h.
|
inline |
Definition at line 57 of file SYS_AtomicPtr.h.