MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / scheduleFixed

Method scheduleFixed

Source/Basic/Scheduler.cpp:99–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void Scheduler::scheduleFixed(const std::function<bool(double)>& handler) {
100 FixedFuncWrapper* func = FixedFuncWrapper::create(handler);
101 func->retain();
102 func->item.iter = _fixedUpdateList.emplace(_fixedUpdateList.end(), &func->item);
103}
104
105void Scheduler::scheduleFixed(NotNull<FixedScheduledItem, 1> item) {
106 AssertIf(item->iter, "target item is already scheduled");

Callers 4

setSchedulerMethod · 0.80
onEnterMethod · 0.80
scheduleFixedUpdateMethod · 0.80
initMethod · 0.80

Calls 4

createFunction · 0.50
retainMethod · 0.45
emplaceMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected