diff options
author | Chris Robinson <[email protected]> | 2018-11-17 02:41:21 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-17 02:41:21 -0800 |
commit | 09943683b5872943cd1f9211ef2a77922906b906 (patch) | |
tree | f9cd5772aa2da5256e542bd1142aa743fa03bb30 /common/threads.h | |
parent | b485cbe53a4bd5c3aab1b584c1752be8bc5cb894 (diff) |
Remove some more unused stuff
Diffstat (limited to 'common/threads.h')
-rw-r--r-- | common/threads.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/common/threads.h b/common/threads.h index ae033931..9abb22f2 100644 --- a/common/threads.h +++ b/common/threads.h @@ -37,15 +37,10 @@ typedef int (*althrd_start_t)(void*); #define WIN32_LEAN_AND_MEAN #include <windows.h> - typedef DWORD althrd_t; typedef CRITICAL_SECTION almtx_t; typedef HANDLE alsem_t; -typedef LONG alonce_flag; - -#define AL_ONCE_FLAG_INIT 0 -void alcall_once(alonce_flag *once, void (*callback)(void)); void althrd_deinit(void); @@ -90,7 +85,6 @@ inline int almtx_unlock(almtx_t *mtx) #include <semaphore.h> #endif /* __APPLE__ */ - typedef pthread_t althrd_t; typedef pthread_mutex_t almtx_t; #ifdef __APPLE__ @@ -98,10 +92,9 @@ typedef dispatch_semaphore_t alsem_t; #else /* !__APPLE__ */ typedef sem_t alsem_t; #endif /* __APPLE__ */ -typedef pthread_once_t alonce_flag; -#define AL_ONCE_FLAG_INIT PTHREAD_ONCE_INIT +void althrd_deinit(void); inline althrd_t althrd_current(void) { @@ -133,15 +126,6 @@ inline int almtx_unlock(almtx_t *mtx) return althrd_success; } - -inline void alcall_once(alonce_flag *once, void (*callback)(void)) -{ - pthread_once(once, callback); -} - - -inline void althrd_deinit(void) { } - #endif |