diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/pthread.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ouroboros/pthread.h b/include/ouroboros/pthread.h index 917c078b..05821dd1 100644 --- a/include/ouroboros/pthread.h +++ b/include/ouroboros/pthread.h @@ -25,6 +25,16 @@ #include <pthread.h> +static int __attribute__((unused)) __timedwait(pthread_cond_t * cond, + pthread_mutex_t * mtx, + const struct timespec * abstime) +{ + if (abstime == NULL) + return pthread_cond_wait(cond, mtx); + + return pthread_cond_timedwait(cond, mtx, abstime); +} + /* various cleanup functions for pthread_cleanup_push */ static void __attribute__((unused)) __cleanup_rwlock_unlock(void * rwlock) { |