|
HDK
|
Wrappers and utilities for atomics. More...
Include dependency graph for atomic.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | OIIO_USE_STDATOMIC 1 |
Typedefs | |
| typedef atomic< int > | atomic_int |
| typedef atomic< long long > | atomic_ll |
Functions | |
| template<typename T > | |
| OIIO_FORCEINLINE void | atomic_min (atomic< T > &avar, const T &bval) |
| Atomically set avar to the minimum of its current value and bval. More... | |
| template<typename T > | |
| OIIO_FORCEINLINE void | atomic_max (atomic< T > &avar, const T &bval) |
| Atomically set avar to the maximum of its current value and bval. More... | |
| OIIO_FORCEINLINE float | atomic_fetch_add (atomic< float > &a, float f) |
| OIIO_FORCEINLINE double | atomic_fetch_add (atomic< double > &a, double f) |
Wrappers and utilities for atomics.
Definition in file atomic.h.
| typedef atomic<int> atomic_int |
| OIIO_FORCEINLINE float atomic_fetch_add | ( | atomic< float > & | a, |
| float | f | ||
| ) |
| OIIO_FORCEINLINE double atomic_fetch_add | ( | atomic< double > & | a, |
| double | f | ||
| ) |
| OIIO_FORCEINLINE void atomic_max | ( | atomic< T > & | avar, |
| const T & | bval | ||
| ) |
| OIIO_FORCEINLINE void atomic_min | ( | atomic< T > & | avar, |
| const T & | bval | ||
| ) |