Standard_Atomic.hxx File Reference

Implementation of some atomic operations (elementary operations with data that cannot be interrupted by parallel threads in the multithread process) on various platforms. More...

Functions

void Standard_Atomic_Increment (int volatile *var)
 Increments atomically integer variable pointed by var.
int Standard_Atomic_DecrementTest (int volatile *var)
 Decrements atomically integer variable pointed by var; returns 1 if result is zero, 0 otherwise.

Detailed Description

By the moment, only operations necessary for reference counter in Standard_Transient objects are implemented.

Currently only two x86-based configurations (Windows NT with MS VC++ compiler and Linix with GCC) are really supported. Other configurations use non-atomic C equivalent.


Function Documentation

int Standard_Atomic_DecrementTest ( int volatile *  var  )  [inline]
void Standard_Atomic_Increment ( int volatile *  var  )  [inline]
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Mar 3 10:40:56 2011 for Open CASCADE Technology by  doxygen 1.6.3