diff options
author | Chris Robinson <[email protected]> | 2014-04-16 06:59:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-16 06:59:44 -0700 |
commit | b020dd13fda12ffa275f6c8165dcad481f9658d6 (patch) | |
tree | 8d9ab0e331765c305f62ab4cf609261913333b64 /Alc/helpers.c | |
parent | 184cf30cf70d0efcba8cfb7c27f464dbc4a3edaf (diff) |
Avoid using a Sleep() wrapper
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r-- | Alc/helpers.c | 10 |
1 files changed, 0 insertions, 10 deletions
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) |