AtomicRefCounter Class Reference
 
 
 
AtomicRefCounter Class Reference

#include <AtomicRefCounter.h>

Inheritance diagram for AtomicRefCounter:
MaxHeapOperators

Class Description

this class contains an integer which is initialized to zero.

One can increase/decrease the value of the integer thread-safely.

Public Member Functions

GraphicsUtilityAPI  AtomicRefCounter ()
  constructor.
GraphicsUtilityAPI  ~AtomicRefCounter ()
GraphicsUtilityAPI long  Increment ()
  increase the integer value by one.
GraphicsUtilityAPI long  Decrement ()
  decrease the integer value by one.

Constructor & Destructor Documentation

GraphicsUtilityAPI AtomicRefCounter ( )

constructor.

integer is initialized to zero.

GraphicsUtilityAPI ~AtomicRefCounter ( )

Member Function Documentation

GraphicsUtilityAPI long Increment ( )

increase the integer value by one.

Returns:
the increased value.
GraphicsUtilityAPI long Decrement ( )

decrease the integer value by one.

Returns:
the decreased value.