Skip to content

Commit

Permalink
Insert next alarm period before callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Nov 6, 2024
1 parent 7b08623 commit cc4a2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libogc/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ static void __sys_alarmhandler(void *arg)
__lwp_thread_dispatchdisable();
alarm = (alarm_st*)__lwp_objmgr_getnoprotection(&sys_alarm_objects,LWP_OBJMASKID(thealarm));
if(alarm) {
if(alarm->alarmhandler) alarm->alarmhandler(thealarm,alarm->cb_arg);
if(alarm->periodic) __lwp_wd_insert_ticks(&alarm->alarm,alarm->periodic);
if(alarm->alarmhandler) alarm->alarmhandler(thealarm,alarm->cb_arg);
}
__lwp_thread_dispatchunnest();
}
Expand Down

0 comments on commit cc4a2cd

Please sign in to comment.