From e6636b438322a9a2f2270ad9d60bf3dfc72be0b3 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 26 May 2016 10:30:56 -0700 Subject: os: Compute timeout in milliseconds instead of struct timeval The timeout resolution offered in the AdjustWaitForDelay call is only milliseconds, so passing around the timeout as a pointer to a struct timeval is not helpful. Doing everything in milliseconds up to the point of the select call simplifies the code without affecting functionality at all. Signed-off-by: Keith Packard Reviewed-by: Adam Jackson --- include/os.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/os.h b/include/os.h index 5f651418b..9a3d9a9a0 100644 --- a/include/os.h +++ b/include/os.h @@ -182,8 +182,7 @@ extern void ForceClockId(clockid_t /* forced_clockid */); extern _X_EXPORT CARD32 GetTimeInMillis(void); extern _X_EXPORT CARD64 GetTimeInMicros(void); -extern _X_EXPORT void AdjustWaitForDelay(void *waitTime, - unsigned long newdelay); +extern _X_EXPORT void AdjustWaitForDelay(void *waitTime, int newdelay); typedef struct _OsTimerRec *OsTimerPtr; -- cgit v1.2.3