OpenImageIO
|
#include <thread.h>
Public Member Functions | |
atomic (T val=0) | |
T | operator() () const |
operator T () const | |
T | fast_value () const |
T | operator= (T x) |
T | operator++ () |
T | operator++ (int) |
T | operator-- () |
T | operator-- (int) |
T | operator+= (T x) |
T | operator-= (T x) |
bool | bool_compare_and_swap (T compareval, T newval) |
T | operator= (const atomic &x) |
Atomic integer. Increment, decrement, add, and subtract in a totally thread-safe manner.
|
inline |
Fast retrieval of value, no interchange, don't care about memory fences.
|
inline |
Retrieve value
|
inline |
Retrieve value
|
inline |
Pre-increment: ++foo
|
inline |
Post-increment: foo++
|
inline |
Add to the value, return the new result
|
inline |
Pre-decrement: –foo
|
inline |
Post-decrement: foo–
|
inline |
Subtract from the value, return the new result
|
inline |
Assign new value.