#include <base_thread_atomic.hh>
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 | |
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.
| base::Busy::Busy | ( | Atomic::Int * | busy | ) | [inline] |
| base::Busy::~Busy | ( | ) | [inline] |
| bool base::Busy::IfBusy | ( | void | ) | const [inline] |
Atomic::Int* const base::Busy::mBusy [private] |
ptr to PERSISTENT var
Atomic::Int base::Busy::mBusy2 [private] |
after incrementing
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:19 2007