diff options
author | wm4 <wm4@nowhere> | 2015-05-11 23:44:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-11 23:44:36 +0200 |
commit | 92b9d75d7256be71d8c8b18438af9494b78f0e96 (patch) | |
tree | eaf114423ce898dc5ac77f5fa48c3f13ef699c41 /osdep/threads.h | |
parent | ca9964a4fb6b1faa0155da43b3c815db0075e2d5 (diff) | |
download | mpv-92b9d75d7256be71d8c8b18438af9494b78f0e96.tar.bz2 mpv-92b9d75d7256be71d8c8b18438af9494b78f0e96.tar.xz |
threads: use utility+POSIX functions instead of weird wrappers
There is not much of a reason to have these wrappers around. Use POSIX
standard functions directly, and use a separate utility function to take
care of the timespec calculations. (Course POSIX for using this weird
format for time values.)
Diffstat (limited to 'osdep/threads.h')
-rw-r--r-- | osdep/threads.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/osdep/threads.h b/osdep/threads.h index 2277fa65a1..8633618009 100644 --- a/osdep/threads.h +++ b/osdep/threads.h @@ -4,15 +4,6 @@ #include <pthread.h> #include <inttypes.h> -// Call pthread_cond_timedwait() with an absolute timeout using the same -// time source/unit as mp_time_us() (microseconds). -int mpthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, - int64_t abstime); - -// Wait by a relative amount of time in seconds. -int mpthread_cond_timedwait_rel(pthread_cond_t *cond, pthread_mutex_t *mutex, - double seconds); - // Helper to reduce boiler plate. int mpthread_mutex_init_recursive(pthread_mutex_t *mutex); |