MCPcopy Create free account
hub / github.com/cemu-project/Cemu / IOS_TimerSetNextFireTime

Function IOS_TimerSetNextFireTime

src/Cafe/IOSU/kernel/iosu_kernel.cpp:206–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 }
205
206 void IOS_TimerSetNextFireTime(IOSTimer& timer, HRTick nextFire)
207 {
208 cemu_assert_debug(!sTimerMutex.try_lock()); // lock must be held by current thread
209 IOSTimerId timerId = &timer - sTimers.data();
210 auto it = sTimerByFireTime.find(timerId);
211 if(it != sTimerByFireTime.end())
212 sTimerByFireTime.erase(it);
213 timer.nextFire = nextFire;
214 if(nextFire != 0)
215 sTimerByFireTime.insert(timerId);
216 }
217
218 void IOS_StopTimerInternal(IOSTimerId timerId)
219 {

Callers 3

IOS_StopTimerInternalFunction · 0.85
IOS_CreateTimerFunction · 0.85
IOSTimerThreadFunction · 0.85

Calls 7

cemu_assert_debugFunction · 0.85
try_lockMethod · 0.80
dataMethod · 0.45
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected