diff options
author | Keith Packard <keithp@keithp.com> | 2016-05-26 10:30:56 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-07-18 15:27:51 -0400 |
commit | e6636b438322a9a2f2270ad9d60bf3dfc72be0b3 (patch) | |
tree | 60de783adf97d0f009a5edc332a833209a78fbe6 /include | |
parent | a414db021575accff64abad6f1047245e81c7476 (diff) |
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 <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/os.h | 3 |
1 files changed, 1 insertions, 2 deletions
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; |