summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfcolin2006-06-28 09:22:19 +0000
committerfcolin2006-06-28 09:22:19 +0000
commit25955b215784cb41fa08245ffbd267e85e89d93b (patch)
tree6cee23b6dd716acbeb10b924c28771215191f07e /src
parent38fa457f4cbc9c7b2b2e85123f70d94b2c0b2101 (diff)
downloadivy-c-25955b215784cb41fa08245ffbd267e85e89d93b.zip
ivy-c-25955b215784cb41fa08245ffbd267e85e89d93b.tar.gz
ivy-c-25955b215784cb41fa08245ffbd267e85e89d93b.tar.bz2
ivy-c-25955b215784cb41fa08245ffbd267e85e89d93b.tar.xz
modification de l'emplacement du calcul du timer ( juste avant le select )
la fonction TimerScan ne s'occupe que des callback la fonction TimerGetSmallestTimeout recalcul le timeout en reprenat l'heure courante
Diffstat (limited to 'src')
-rw-r--r--src/timer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/timer.c b/src/timer.c
index 565271e..4e38c52 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -137,6 +137,10 @@ void TimerModify( TimerId timer, long time )
struct timeval *TimerGetSmallestTimeout()
{
+ unsigned long stamp;
+ /* recalcul du prochain timeout */
+ stamp = currentTime();
+ AdjTimeout( stamp );
return timeoutptr;
}
@@ -168,6 +172,5 @@ void TimerScan()
}
}
}
- /* recalcul du prochain timeout */
- AdjTimeout( stamp );
+
}