| 626 | } |
| 627 | |
| 628 | void Scheduler::pauseTarget(void* target) |
| 629 | { |
| 630 | AXASSERT(target != nullptr, "target can't be nullptr!"); |
| 631 | |
| 632 | // custom selectors |
| 633 | auto timerIt = _timersMap.find(target); |
| 634 | if (timerIt != _timersMap.end()) |
| 635 | { |
| 636 | timerIt->second.paused = true; |
| 637 | } |
| 638 | |
| 639 | // update selector |
| 640 | auto updateIt = _schedIndexMap.find(target); |
| 641 | if (updateIt != _schedIndexMap.end()) |
| 642 | { |
| 643 | updateIt->second->paused = true; |
| 644 | } |
| 645 | } |
| 646 | |
| 647 | bool Scheduler::isTargetPaused(void* target) |
| 648 | { |