OgreHapticsAtomic.h File Reference

#include "OgreHapticsPrerequisites.h"
#include <windows.h>
#include <intrin.h>

Go to the source code of this file.

Namespaces

namespace  OgreHaptics

Classes

class  OgreHaptics::AtomicScalar< T >
 Structure which has built in atomic arithmetic operators which can be performed on 32-bit variables (e.g. More...

Defines

#define WIN32_LEAN_AND_MEAN

Functions

void OgreHaptics::memoryReadWriteBarrier (void)
 Issues a full memory barrier.
template<typename T>
OgreHaptics::atomicIncrement (volatile T *ptr)
 Atomically increments (increases by 1) the value of the 32-bit variable pointed to by the ptr parameter.
template<typename T>
OgreHaptics::atomicDecrement (volatile T *ptr)
 Atomically decrements (decreases by 1) the value of the 32-bit variable pointed to by the ptr parameter.
template<typename T>
OgreHaptics::atomicExchange (volatile T *ptr, T value)
 Sets the value of the 32-bit variable pointed to by the ptr parameter to the given value.
template<typename T>
T * OgreHaptics::atomicExchangePtr (T *volatile *ptr, T *value)
 Sets the address to which the given ptr parameter will point to the given value.
template<typename T>
OgreHaptics::atomicExchangeAndAdd (volatile T *ptr, T value)
 Adds the given 32-bit value to the 32-bit variable pointed to by the given ptr.
template<typename T>
OgreHaptics::atomicExchangeAndSubtract (volatile T *ptr, T value)
 Subtracts the given 32-bit value from the 32-bit variable pointed to by the given ptr.
template<typename T>
bool OgreHaptics::atomicCompareAndSwap (volatile T *ptr, T oldValue, T newValue)
 Sets the value of the 32-bit target variable to the given new value if the old value of the target variable equals the given old value.
template<typename T>
bool OgreHaptics::atomicCompareAndSwapPtr (T *volatile *ptr, T *oldValue, T *newValue)
 Sets the value of the target pointer to the new value if the old value of the target pointer equals the given old value.


Define Documentation

#define WIN32_LEAN_AND_MEAN

Definition at line 30 of file OgreHapticsAtomic.h.


Last modified Tue Jan 6 22:31:25 2009