aboutsummaryrefslogtreecommitdiffstats
path: root/common/threads.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-10 22:53:03 -0800
committerChris Robinson <[email protected]>2018-11-10 22:53:03 -0800
commit5bc2918e16c0ec5b43837ed0a12bfa1f7187103a (patch)
treead2ecc08749c2d6455f826e5c5e4988e41d1b52e /common/threads.h
parentf3ce7bc7dcf20275d93974755c42486d812d771f (diff)
Remove the unused condition variable APIs
Diffstat (limited to 'common/threads.h')
-rw-r--r--common/threads.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/common/threads.h b/common/threads.h
index c2168cdf..2cc65557 100644
--- a/common/threads.h
+++ b/common/threads.h
@@ -41,11 +41,6 @@ typedef void (*altss_dtor_t)(void*);
typedef DWORD althrd_t;
typedef CRITICAL_SECTION almtx_t;
-#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0600
-typedef CONDITION_VARIABLE alcnd_t;
-#else
-typedef struct { void *Ptr; } alcnd_t;
-#endif
typedef HANDLE alsem_t;
typedef DWORD altss_t;
typedef LONG alonce_flag;
@@ -128,7 +123,6 @@ inline int altss_set(altss_t tss_id, void *val)
typedef pthread_t althrd_t;
typedef pthread_mutex_t almtx_t;
-typedef pthread_cond_t alcnd_t;
#ifdef __APPLE__
typedef dispatch_semaphore_t alsem_t;
#else /* !__APPLE__ */
@@ -220,12 +214,6 @@ void althrd_setname(althrd_t thr, const char *name);
int almtx_init(almtx_t *mtx, int type);
void almtx_destroy(almtx_t *mtx);
-int alcnd_init(alcnd_t *cond);
-int alcnd_signal(alcnd_t *cond);
-int alcnd_broadcast(alcnd_t *cond);
-int alcnd_wait(alcnd_t *cond, almtx_t *mtx);
-void alcnd_destroy(alcnd_t *cond);
-
int alsem_init(alsem_t *sem, unsigned int initial);
void alsem_destroy(alsem_t *sem);
int alsem_post(alsem_t *sem);