[PATCH 2/6] server: Use monotonic clock for relative timeouts.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> --- server/fd.c | 55 ++++++++++++++++++++++++++++++++++++--------- server/file.h | 6 +++++ server/protocol.def | 3 +++ server/request.c | 14 ++++++------ server/request.h | 8 ++++++- 5 files changed, 68 insertions(+), 18 deletions(-)
Piotr Caban <piotr(a)codeweavers.com> writes:
@@ -214,6 +214,9 @@ struct wake_up_reply typedef __int64 timeout_t; #define TIMEOUT_INFINITE (((timeout_t)0x7fffffff) << 32 | 0xffffffff)
+/* absolute timeout, negative means that monotonic clock is used */ +typedef __int64 when_t;
It's not clear that 'when' would mean absolute timeout. I'd suggest naming it something like abstime_t instead. -- Alexandre Julliard julliard(a)winehq.org
participants (2)
-
Alexandre Julliard -
Piotr Caban