From b020dd13fda12ffa275f6c8165dcad481f9658d6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 16 Apr 2014 06:59:44 -0700 Subject: Avoid using a Sleep() wrapper --- Alc/helpers.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'Alc/helpers.c') diff --git a/Alc/helpers.c b/Alc/helpers.c index 062ec83c..17fc9c2c 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -451,16 +451,6 @@ ALuint timeGetTime(void) #endif } -void Sleep(ALuint t) -{ - struct timespec tv, rem; - tv.tv_nsec = (t*1000000)%1000000000; - tv.tv_sec = t/1000; - - while(nanosleep(&tv, &rem) == -1 && errno == EINTR) - tv = rem; -} - #ifdef HAVE_DLFCN_H void *LoadLib(const char *name) -- cgit v1.2.3