SYS_AtomicInt32 Class Reference

#include <SYS_AtomicInt.h>

List of all members.

Public Member Functions

 SYS_AtomicInt32 (int32 value=0)
int32 exchange (int32 val)
int32 exchangeAdd (int32 val)
int32 add (int32 val)
 Atomically adds val to myValue, returning the new value of myValue.
void maximum (int32 val)
 Atomically set myValue to the maximum of val and myValue.
void set (int32 val)
 operator int32 () const


Detailed Description

Definition at line 24 of file SYS_AtomicInt.h.


Constructor & Destructor Documentation

SYS_AtomicInt32::SYS_AtomicInt32 ( int32  value = 0  )  [inline, explicit]

Definition at line 27 of file SYS_AtomicInt.h.


Member Function Documentation

SYS_ATOMIC_INLINE int32 SYS_AtomicInt32::add ( int32  val  )  [inline]

Atomically adds val to myValue, returning the new value of myValue.

Definition at line 264 of file SYS_AtomicIntImpl.h.

SYS_ATOMIC_INLINE int32 SYS_AtomicInt32::exchange ( int32  val  )  [inline]

Note that to use any of these three methods you must include SYS_AtomicIntImpl. Do *not* include that file in a .h file as it brings in windows.h! Atomically assigns val to myValue, returning the prior value of myValue.

Atomically assigns val to myValue, returning the prior value of myValue.

Definition at line 245 of file SYS_AtomicIntImpl.h.

SYS_ATOMIC_INLINE int32 SYS_AtomicInt32::exchangeAdd ( int32  val  )  [inline]

Atomically adds val to myValue, returning the prior value of myValue.

Definition at line 253 of file SYS_AtomicIntImpl.h.

SYS_ATOMIC_INLINE void SYS_AtomicInt32::maximum ( int32  val  )  [inline]

Atomically set myValue to the maximum of val and myValue.

Definition at line 274 of file SYS_AtomicIntImpl.h.

SYS_AtomicInt32::operator int32 (  )  const [inline]

Definition at line 48 of file SYS_AtomicInt.h.

void SYS_AtomicInt32::set ( int32  val  )  [inline]

Definition at line 47 of file SYS_AtomicInt.h.


The documentation for this class was generated from the following files:

Generated on Fri May 25 00:10:42 2012 for HDK by  doxygen 1.5.9