aboutsummaryrefslogtreecommitdiffstats
path: root/common/threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/threads.c')
-rw-r--r--common/threads.c18
1 files changed, 3 insertions, 15 deletions
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