diff options
author | Chris Robinson <[email protected]> | 2014-04-17 09:14:03 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-17 09:14:03 -0700 |
commit | 4b5e8b8c407354d94203a59fff8af59ce7d2b5e4 (patch) | |
tree | b53045d7064d3f6264892ac3c8dd2473cb9a0a02 /OpenAL32/Include/threads.h | |
parent | d1f1a1d056b654bbe52c0b1ba6752b7a106482e1 (diff) |
Don't inline al_nssleep
Diffstat (limited to 'OpenAL32/Include/threads.h')
-rw-r--r-- | OpenAL32/Include/threads.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/OpenAL32/Include/threads.h b/OpenAL32/Include/threads.h index e021f7a5..762e5b15 100644 --- a/OpenAL32/Include/threads.h +++ b/OpenAL32/Include/threads.h @@ -212,18 +212,9 @@ void altss_delete(altss_t tss_id); int altimespec_get(struct timespec *ts, int base); +void al_nssleep(time_t sec, long nsec); -void SetThreadName(const char *name); - - -inline void al_nssleep(time_t sec, long nsec) -{ - struct timespec ts, rem; - ts.tv_sec = sec; - ts.tv_nsec = nsec; - while(althrd_sleep(&ts, &rem) == -1) - ts = rem; -} +void SetThreadName(const char *name); #endif /* AL_THREADS_H */ |