[vlc-devel] [PATCH 3/4] threads: remove vlc_cond_timedwait_daytime()

RĂ©mi Denis-Courmont remi at remlab.net
Thu Aug 27 18:43:23 CEST 2020


---
 include/vlc_threads.h |  2 --
 src/misc/threads.c    | 13 -------------
 2 files changed, 15 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 21f4e46c27..0c5ef8d19c 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -447,8 +447,6 @@ VLC_API void vlc_cond_wait(vlc_cond_t *cond, vlc_mutex_t *mutex);
 VLC_API int vlc_cond_timedwait(vlc_cond_t *cond, vlc_mutex_t *mutex,
                                vlc_tick_t deadline);
 
-int vlc_cond_timedwait_daytime(vlc_cond_t *, vlc_mutex_t *, time_t);
-
 /** @} */
 
 /**
diff --git a/src/misc/threads.c b/src/misc/threads.c
index 196e0dc1d0..3d133dcbcd 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -362,19 +362,6 @@ int vlc_cond_timedwait(vlc_cond_t *cond, vlc_mutex_t *mutex,
     return ret;
 }
 
-int vlc_cond_timedwait_daytime(vlc_cond_t *cond, vlc_mutex_t *mutex,
-                               time_t deadline)
-{
-    struct vlc_cond_waiter waiter;
-    int ret;
-
-    vlc_cond_wait_prepare(&waiter, cond, mutex);
-    ret = vlc_atomic_timedwait_daytime(&waiter.value, 0, deadline);
-    vlc_cond_wait_finish(&waiter, cond, mutex);
-
-    return ret;
-}
-
 #ifdef LIBVLC_NEED_RWLOCK
 /*** Generic read/write locks ***/
 #include <stdlib.h>
-- 
2.28.0



More information about the vlc-devel mailing list