MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / OSSetPeriodicAlarm

Function OSSetPeriodicAlarm

src/dolphin/src/os/OSAlarm.c:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void OSSetPeriodicAlarm(OSAlarm* alarm, OSTime start, OSTime period, OSAlarmHandler handler)
114{
115 BOOL enabled;
116 enabled = OSDisableInterrupts();
117 alarm->period = period;
118 alarm->start = __OSTimeToSystemTime(start);
119 InsertAlarm(alarm, 0, handler);
120 OSRestoreInterrupts(enabled);
121}
122
123void OSCancelAlarm(OSAlarm* alarm)
124{

Callers

nothing calls this directly

Calls 3

OSDisableInterruptsFunction · 0.85
__OSTimeToSystemTimeFunction · 0.85
InsertAlarmFunction · 0.85

Tested by

no test coverage detected