MCPcopy Create free account
hub / github.com/axmolengine/axmol / unscheduleAllForTarget

Method unscheduleAllForTarget

core/base/Scheduler.cpp:546–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546void Scheduler::unscheduleAllForTarget(void* target)
547{
548 // explicit nullptr handling
549 if (target == nullptr)
550 {
551 return;
552 }
553
554 // Custom Selectors
555 auto timerIt = _timersMap.find(target);
556 if (timerIt != _timersMap.end())
557 unscheduleAllForTarget(timerIt);
558 else
559 unscheduleUpdate(target);
560}
561
562void Scheduler::unscheduleAllForTarget(std::unordered_map<void*, TimerHandle>::iterator& timerIt)
563{

Callers 8

clearMethod · 0.80
~HttpClientMethod · 0.80
~WebSocketMethod · 0.80
killAllMethod · 0.80
~TwoSchedulersMethod · 0.80
~ActionObjectMethod · 0.80

Calls 8

isAbortedMethod · 0.80
setAbortedMethod · 0.80
findMethod · 0.45
endMethod · 0.45
containsMethod · 0.45
retainMethod · 0.45
clearMethod · 0.45
eraseMethod · 0.45

Tested by 1

~TwoSchedulersMethod · 0.64