From 09943683b5872943cd1f9211ef2a77922906b906 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 17 Nov 2018 02:41:21 -0800 Subject: Remove some more unused stuff --- common/threads.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'common/threads.c') diff --git a/common/threads.c b/common/threads.c index 1ecec365..b0f90bc5 100644 --- a/common/threads.c +++ b/common/threads.c @@ -213,17 +213,6 @@ int alsem_trywait(alsem_t *sem) } -void alcall_once(alonce_flag *once, void (*callback)(void)) -{ - LONG ret; - while((ret=InterlockedExchange(once, 1)) == 1) - althrd_yield(); - if(ret == 0) - (*callback)(); - InterlockedExchange(once, 2); -} - - void althrd_deinit(void) { ResetUIntMap(&ThrdIdHandle); @@ -239,10 +228,6 @@ void althrd_deinit(void) #endif -extern inline void alcall_once(alonce_flag *once, void (*callback)(void)); - -extern inline void althrd_deinit(void); - void althrd_setname(althrd_t thr, const char *name) { #if defined(HAVE_PTHREAD_SETNAME_NP) @@ -457,4 +442,7 @@ int alsem_trywait(alsem_t *sem) #endif /* __APPLE__ */ +void althrd_deinit(void) +{ } + #endif -- cgit v1.2.3