aboutsummaryrefslogtreecommitdiffstats
path: root/common/threads.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-17 02:41:21 -0800
committerChris Robinson <[email protected]>2018-11-17 02:41:21 -0800
commit09943683b5872943cd1f9211ef2a77922906b906 (patch)
treef9cd5772aa2da5256e542bd1142aa743fa03bb30 /common/threads.c
parentb485cbe53a4bd5c3aab1b584c1752be8bc5cb894 (diff)
Remove some more unused stuff
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