| 544 | } |
| 545 | |
| 546 | void 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 | |
| 562 | void Scheduler::unscheduleAllForTarget(std::unordered_map<void*, TimerHandle>::iterator& timerIt) |
| 563 | { |