From a114d6cbb56470db87c2b0bd7c76ce26bdaeb63c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 1 Feb 2018 22:24:17 -0800 Subject: Remove unused _timed methods They're not reliably implemented anyway, as some systems will just flat out fail when trying to use them. --- common/threads.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'common/threads.h') diff --git a/common/threads.h b/common/threads.h index a8096546..ffd7fac5 100644 --- a/common/threads.h +++ b/common/threads.h @@ -28,7 +28,6 @@ enum { enum { almtx_plain = 0, almtx_recursive = 1, - almtx_timed = 2 }; typedef int (*althrd_start_t)(void*); @@ -227,20 +226,17 @@ void althrd_setname(althrd_t thr, const char *name); int almtx_init(almtx_t *mtx, int type); void almtx_destroy(almtx_t *mtx); -int almtx_timedlock(almtx_t *mtx, const struct timespec *ts); 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); -int alcnd_timedwait(alcnd_t *cond, almtx_t *mtx, const struct timespec *time_point); 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); int alsem_wait(alsem_t *sem); -int alsem_timedwait(alsem_t *sem, const struct timespec *time_point); int altss_create(altss_t *tss_id, altss_dtor_t callback); void altss_delete(altss_t tss_id); -- cgit v1.2.3