aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-17 21:39:51 -0700
committerChris Robinson <[email protected]>2014-04-17 21:39:51 -0700
commit6c8bf9ec42b74635e05241a769f70ea5572a335c (patch)
tree462829a2c824adb0a6cd5de39f539c6cb16fbfec /Alc/helpers.c
parent20e5ec18e1e28b83ecaa588b87973be2cf295e74 (diff)
Rename althread_once to be more C11-like
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 79dac143..e1e94f10 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -311,17 +311,6 @@ void RestoreFPUMode(const FPUCtl *ctl)
#ifdef _WIN32
-void althread_once(althread_once_t *once, void (*callback)(void))
-{
- LONG ret;
- while((ret=InterlockedExchange(once, 1)) == 1)
- althrd_yield();
- if(ret == 0)
- callback();
- InterlockedExchange(once, 2);
-}
-
-
static WCHAR *FromUTF8(const char *str)
{
WCHAR *out = NULL;