Merge pull request #4557 from Cacodemon345/timer-tsc-set

Make sure timers don't go completely out of sync upon altering TSC vi…
This commit is contained in:
Miran Grča
2024-06-22 17:47:12 +02:00
committed by GitHub
3 changed files with 38 additions and 6 deletions

View File

@@ -185,6 +185,9 @@ timer_set_p(pc_timer_t *timer, void *priv)
extern void timer_stop(pc_timer_t *timer);
extern void timer_on_auto(pc_timer_t *timer, double period);
/* Change TSC, taking into account the timers. */
extern void timer_set_new_tsc(uint64_t new_tsc);
#ifdef __cplusplus
}
#endif