diff options
author | Chris Robinson <[email protected]> | 2014-04-16 06:18:24 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-16 06:18:24 -0700 |
commit | 184cf30cf70d0efcba8cfb7c27f464dbc4a3edaf (patch) | |
tree | 02abfdbcdd8e2de32897de6b7c9f9a306e6048d8 /Alc/helpers.c | |
parent | d124aee4d78db389117a8eda60c12a829489622b (diff) |
Use althrd_yield instead of alsched_yield
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r-- | Alc/helpers.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index bf8c5ca1..062ec83c 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -311,13 +311,11 @@ void RestoreFPUMode(const FPUCtl *ctl) #ifdef _WIN32 -extern inline int alsched_yield(void); - void althread_once(althread_once_t *once, void (*callback)(void)) { LONG ret; while((ret=InterlockedExchange(once, 1)) == 1) - alsched_yield(); + althrd_yield(); if(ret == 0) callback(); InterlockedExchange(once, 2); @@ -667,7 +665,7 @@ void SetRTPriority(void) static void Lock(volatile ALenum *l) { while(ExchangeInt(l, AL_TRUE) == AL_TRUE) - alsched_yield(); + althrd_yield(); } static void Unlock(volatile ALenum *l) |