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

void DefaultTimerManager::removeTimerProc ( TimerProc  proc ) [virtual, inherited]

Remove the given timer callback. It will not be invoked anymore, and no instance of this callback will be running anymore.

Implements Common::TimerManager.

Definition at line 138 of file default-timer.cpp.

      Common::StackLock lock(_mutex);

      TimerSlot *slot = _head;

      while (slot->next) {
            if (slot->next->callback == callback) {
                  TimerSlot *next = slot->next->next;
                  delete slot->next;
                  slot->next = next;
            } else {
                  slot = slot->next;

Generated by  Doxygen 1.6.0   Back to index