Jolt Physics
A multi core friendly Game Physics Engine
|
#include <atomic>
Go to the source code of this file.
Functions | |
template<class T > | |
bool | AtomicMin (atomic< T > &ioAtomic, const T inValue, const memory_order inMemoryOrder=memory_order_seq_cst) |
Atomically compute the min(ioAtomic, inValue) and store it in ioAtomic, returns true if value was updated. | |
template<class T > | |
bool | AtomicMax (atomic< T > &ioAtomic, const T inValue, const memory_order inMemoryOrder=memory_order_seq_cst) |
Atomically compute the max(ioAtomic, inValue) and store it in ioAtomic, returns true if value was updated. | |
bool AtomicMax | ( | atomic< T > & | ioAtomic, |
const T | inValue, | ||
const memory_order | inMemoryOrder = memory_order_seq_cst |
||
) |
Atomically compute the max(ioAtomic, inValue) and store it in ioAtomic, returns true if value was updated.
bool AtomicMin | ( | atomic< T > & | ioAtomic, |
const T | inValue, | ||
const memory_order | inMemoryOrder = memory_order_seq_cst |
||
) |
Atomically compute the min(ioAtomic, inValue) and store it in ioAtomic, returns true if value was updated.