mirror of
https://github.com/scummvm/scummvm.git
synced 2026-11-18 21:34:48 +00:00
synced with scummvm
This commit is contained in:
1 parent
fca3a20334
commit
7aa79c880d
115 files changed
+5209
-2608
No files matched your search
@@ -124,6 +124,12 @@ bool DefaultTimerManager::installTimerProc(TimerProc callback, int32 interval, v
|
||||
slot->nextFireTimeMicro = interval % 1000;
|
||||
slot->next = 0;
|
||||
|
||||
// FIXME: It seems we do allow the client to add one callback multiple times over here,
|
||||
// but "removeTimerProc" will remove *all* added instances. We should either prevent
|
||||
// multiple additions of a timer proc OR we should change removeTimerProc to only remove
|
||||
// a specific timer proc entry.
|
||||
// Probably we can safely just allow a single addition of a specific function once
|
||||
// and just update our Timer documentation accordingly.
|
||||
insertPrioQueue(_head, slot);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user