Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

AtomicAdjustDummyImpl Class Reference

A trivial implementation for atomic adjustments for systems that don't require multiprogramming, and therefore don't require special atomic operations. More...

#include <atomicAdjustDummyImpl.h>

List of all members.

Static Public Member Functions

int inc (int &var)
 Atomically increments the indicated variable and returns the new value.

int dec (int &var)
 Atomically decrements the indicated variable and returns the new value.

int set (int &var, int new_value)
 Atomically changes the indicated variable and returns the original value.


Detailed Description

A trivial implementation for atomic adjustments for systems that don't require multiprogramming, and therefore don't require special atomic operations.

Definition at line 42 of file atomicAdjustDummyImpl.h.


Member Function Documentation

int AtomicAdjustDummyImpl::dec int &  var  )  [inline, static]
 

Atomically decrements the indicated variable and returns the new value.

Definition at line 49 of file atomicAdjustDummyImpl.I.

Referenced by AtomicAdjust::inc().

int AtomicAdjustDummyImpl::inc int &  var  )  [inline, static]
 

Atomically increments the indicated variable and returns the new value.

Definition at line 34 of file atomicAdjustDummyImpl.I.

References INLINE.

int AtomicAdjustDummyImpl::set int &  var,
int  new_value
[inline, static]
 

Atomically changes the indicated variable and returns the original value.

Definition at line 64 of file atomicAdjustDummyImpl.I.

Referenced by AtomicAdjust::dec().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:47:27 2003 for Panda by doxygen1.3