MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / modTimerReschedule

Function modTimerReschedule

modules/base/timer/pebble/timer.c:207–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void modTimerReschedule(modTimer timer, int firstInterval, int secondInterval)
208{
209 modCriticalSectionDeclare;
210 modCriticalSectionBegin();
211 timer->triggerTime = modMilliseconds() + firstInterval;
212 timer->repeatInterval = secondInterval;
213 timer->flags &= ~kTimerFlagUnscheduled;
214 modCriticalSectionEnd();
215
216 modTimersScheduleNext();
217}
218
219void modTimerUnschedule(modTimer timer)
220{

Callers

nothing calls this directly

Calls 2

modMillisecondsFunction · 0.85
modTimersScheduleNextFunction · 0.85

Tested by

no test coverage detected