base::Busy Class Reference

Class to automatically increment and decrement a busy count. More...

#include <base_thread_atomic.hh>

List of all members.

Public Member Functions

 Busy (Atomic::Int *busy)
 ~Busy ()
bool IfBusy (void) const

Private Attributes

Atomic::Int *const mBusy
 ptr to PERSISTENT var
Atomic::Int mBusy2
 after incrementing


Detailed Description

Class to automatically increment and decrement a busy count.

A busy flag is used to prevent possible infinite recursion in case function A calls B and B calls A. A Busy object's dtor ensures the count is updated in case of early returning.


Constructor & Destructor Documentation

base::Busy::Busy ( Atomic::Int busy  )  [inline]

base::Busy::~Busy (  )  [inline]


Member Function Documentation

bool base::Busy::IfBusy ( void   )  const [inline]


Member Data Documentation

Atomic::Int* const base::Busy::mBusy [private]

ptr to PERSISTENT var

Atomic::Int base::Busy::mBusy2 [private]

after incrementing


The documentation for this class was generated from the following file: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:19 2007