From cd10af4db6c30d25f88095eab2ce24df6a6c92df Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Apr 2014 20:56:25 +0200 Subject: threads: fix function name Closer to the corresponding standard function pthread_cond_timedwait. --- osdep/threads.c | 4 ++-- osdep/threads.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'osdep') diff --git a/osdep/threads.c b/osdep/threads.c index 6b19f83f1d..84a65feddd 100644 --- a/osdep/threads.c +++ b/osdep/threads.c @@ -62,8 +62,8 @@ struct timespec mpthread_get_deadline(double timeout) } // Call pthread_cond_timedwait() with a relative timeout in seconds -int mpthread_cond_timed_wait(pthread_cond_t *cond, pthread_mutex_t *mutex, - double timeout) +int mpthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, + double timeout) { struct timespec ts = mpthread_get_deadline(timeout); return pthread_cond_timedwait(cond, mutex, &ts); diff --git a/osdep/threads.h b/osdep/threads.h index 3d060009cb..02f6ac1489 100644 --- a/osdep/threads.h +++ b/osdep/threads.h @@ -5,8 +5,8 @@ struct timespec mpthread_get_deadline(double timeout); -int mpthread_cond_timed_wait(pthread_cond_t *cond, pthread_mutex_t *mutex, - double timeout); +int mpthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, + double timeout); int mpthread_mutex_init_recursive(pthread_mutex_t *mutex); -- cgit v1.2.3