#include <hold.h>

Public Member Functions |
|
| HoldSuspend (BOOL suspendNow=TRUE) | |
| ~HoldSuspend () | |
| void | Suspend () |
| void | Resume () |
| HoldSuspend | ( | BOOL | suspendNow = TRUE |
) | [inline] |
: suspendCount(0) {
if (suspendNow) {
this->Suspend();
}
}
| ~HoldSuspend | ( | ) | [inline] |
{
while(suspendCount > 0) {
this->Resume();
}
}
| void Suspend | ( | ) | [inline] |
{
if (suspendCount == 0)
theHold.Suspend ();
suspendCount++;
}
| void Resume | ( | ) | [inline] |
{
if (suspendCount == 1)
theHold.Resume();
if (suspendCount > 0)
suspendCount--;
}