Try to handle unexpected backward time jumps

This commit is contained in:
Miroslav Lichvar
2011-06-10 18:29:41 +02:00
parent 4ba3dd66ad
commit 91749ebb2b
3 changed files with 68 additions and 7 deletions

16
local.c
View File

@@ -488,6 +488,22 @@ LCL_ApplyStepOffset(double offset)
/* ================================================== */
void
LCL_NotifyExternalTimeStep(struct timeval *raw, struct timeval *cooked,
double offset, double dispersion)
{
ChangeListEntry *ptr;
/* Dispatch to all handlers */
for (ptr = change_list.next; ptr != &change_list; ptr = ptr->next) {
(ptr->handler)(raw, cooked, 0.0, offset, 1, ptr->anything);
}
lcl_InvokeDispersionNotifyHandlers(dispersion);
}
/* ================================================== */
void
LCL_AccumulateFrequencyAndOffset(double dfreq, double doffset)
{