Om  1.0.0
A universal framework for multimedia simulation
Classes | Namespaces | Functions
omAtomics.h File Reference
#include "omThreadsConfig.h"

Classes

class  om::threads::Atomic< T >
 A class that wraps a primitive-type value in atomic operations. More...
 

Namespaces

 om
 The enclosing namespace for the entire Om library.
 
 om::threads
 A namespace containing classes that provide ways to create, manage, and synchronize threads.
 
 om::threads::atomic
 

Functions

template<typename T >
om::threads::atomic::readAndSet (T &operand, T value)
 Atomically set the operand to the given value and return the previous operand value. More...
 
template<typename T >
om::threads::atomic::addAndRead (T &operand, T value)
 
template<typename T >
om::threads::atomic::incrementAndRead (T &operand)
 
template<typename T >
om::threads::atomic::subAndRead (T &operand, T value)
 
template<typename T >
om::threads::atomic::decrementAndRead (T &operand)
 
template<typename T >
om::threads::atomic::orAndRead (T &operand, T value)
 
template<typename T >
om::threads::atomic::andAndRead (T &operand, T value)
 
template<typename T >
om::threads::atomic::xorAndRead (T &operand, T value)
 
template<typename T >
om::threads::atomic::nandAndRead (T &operand, T value)
 
template<typename T >
om::threads::atomic::readAndIncrement (T &operand)
 
template<typename T >
om::threads::atomic::readAndDecrement (T &operand)
 
template<typename T >
om::threads::atomic::readAndAdd (T &operand, T value)
 
template<typename T >
om::threads::atomic::readAndSub (T &operand, T value)
 
template<typename T >
om::threads::atomic::readAndOr (T &operand, T value)
 
template<typename T >
om::threads::atomic::readAndAnd (T &operand, T value)
 
template<typename T >
om::threads::atomic::readAndXor (T &operand, T value)
 
template<typename T >
om::threads::atomic::readAndNand (T &operand, T value)
 
template<typename T >
Bool om::threads::atomic::testAndSet (T &operand, T compareValue, T newValue)
 Test and return whether or not the operand is equal to the comparison value. If so, set the operand to the new value. More...