From: Keith Whitwell Date: Mon, 27 Apr 2009 13:43:31 +0000 (+0100) Subject: util/time: add util_time_sleep() for windows userspace X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5250eec652af46d20261624fd043992355a0b4ba;p=mesa.git util/time: add util_time_sleep() for windows userspace Somebody with a clue could probably do a better implemenation... --- diff --git a/src/gallium/auxiliary/util/u_time.c b/src/gallium/auxiliary/util/u_time.c index 8afe4fccf7b..8e167d3c42f 100644 --- a/src/gallium/auxiliary/util/u_time.c +++ b/src/gallium/auxiliary/util/u_time.c @@ -217,4 +217,13 @@ void util_time_sleep(unsigned usecs) } while(start <= curr && curr < end || end < start && (curr < end || start <= curr)); } +#elif defined(PIPE_SUBSYSTEM_WINDOWS_USER) +#include +#include + + +void util_time_sleep(unsigned usecs) +{ + Sleep((usecs + 999)/ 1000); +} #endif