2005/5/9

     
 

class core_atomicop

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::sys::core_atomicop Class Reference

#include <core_atomicop.h>

List of all members.


Detailed Description

This is the internal implementation of an atomic operation.


Public Member Functions

 core_atomicop (int val=0)
 constructs a new atomic op variable

int read ()
 read a value

void increment ()
 increments the value and return it

bool decr_test_zero ()
 decrement the value and return true if value is zero

void decrement ()
 decrement value


Static Public Attributes

bool singleProcessor
 runs on a single processor


Private Attributes

atomic_t _value


Constructor & Destructor Documentation

acdk::lang::sys::core_atomicop::core_atomicop int  val = 0  )  [inline]
 

constructs a new atomic op variable


Member Function Documentation

bool acdk::lang::sys::core_atomicop::decr_test_zero  )  [inline]
 

decrement the value and return true if value is zero

void acdk::lang::sys::core_atomicop::decrement  )  [inline]
 

decrement value

void acdk::lang::sys::core_atomicop::increment  )  [inline]
 

increments the value and return it

int acdk::lang::sys::core_atomicop::read  )  [inline]
 

read a value


Member Data Documentation

atomic_t acdk::lang::sys::core_atomicop::_value [private]
 

bool acdk::lang::sys::core_atomicop::singleProcessor [static]
 

runs on a single processor