| 91 | } |
| 92 | |
| 93 | void Scheduler::schedule(NotNull<ScheduledItem, 1> item) { |
| 94 | AssertIf(item->iter, "target item is already scheduled"); |
| 95 | item->target->retain(); |
| 96 | item->iter = _updateList.emplace(_updateList.end(), item); |
| 97 | } |
| 98 | |
| 99 | void Scheduler::scheduleFixed(const std::function<bool(double)>& handler) { |
| 100 | FixedFuncWrapper* func = FixedFuncWrapper::create(handler); |
no test coverage detected