Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PTimer::~PTimer (  )  [virtual]

Destroy the timer object, removing it from the applications timer list if it was running.

Definition at line 1213 of file osutils.cxx.

{
  timerList->listMutex.Wait();
  timerList->Remove(this);
  BOOL isCurrentTimer = this == timerList->currentTimer;
  timerList->listMutex.Signal();

  // Make sure that the OnTimeout for this timer has completed before
  // destroying the timer
  if (isCurrentTimer) {
    timerList->inTimeoutMutex.Wait();
    timerList->inTimeoutMutex.Signal();
  }
}


Generated by  Doxygen 1.6.0   Back to index