[vlc-commits] fifo: remove unused vlc_fifo_TimedWaitCond()
Rémi Denis-Courmont
git at videolan.org
Mon Apr 13 12:14:41 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 11 18:14:13 2020 +0300| [3cce24eb09e0933fcb92982f81f14e7949d18446] | committer: Rémi Denis-Courmont
fifo: remove unused vlc_fifo_TimedWaitCond()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3cce24eb09e0933fcb92982f81f14e7949d18446
---
include/vlc_block.h | 8 --------
src/misc/fifo.c | 5 -----
2 files changed, 13 deletions(-)
diff --git a/include/vlc_block.h b/include/vlc_block.h
index 8fc07055cf..5817350ea0 100644
--- a/include/vlc_block.h
+++ b/include/vlc_block.h
@@ -546,14 +546,6 @@ VLC_API void vlc_fifo_Wait(vlc_fifo_t *);
VLC_API void vlc_fifo_WaitCond(vlc_fifo_t *, vlc_cond_t *);
-/**
- * Timed variant of vlc_fifo_WaitCond().
- *
- * Atomically unlocks the FIFO and waits until one thread signals the FIFO up
- * to a certain date, then locks the FIFO again. See vlc_fifo_Wait().
- */
-int vlc_fifo_TimedWaitCond(vlc_fifo_t *, vlc_cond_t *, vlc_tick_t);
-
/**
* Queues a linked-list of blocks into a locked FIFO.
*
diff --git a/src/misc/fifo.c b/src/misc/fifo.c
index 1d060bb091..f6878d8eb8 100644
--- a/src/misc/fifo.c
+++ b/src/misc/fifo.c
@@ -71,11 +71,6 @@ void vlc_fifo_WaitCond(vlc_fifo_t *fifo, vlc_cond_t *condvar)
vlc_cond_wait(condvar, &fifo->lock);
}
-int vlc_fifo_TimedWaitCond(vlc_fifo_t *fifo, vlc_cond_t *condvar, vlc_tick_t deadline)
-{
- return vlc_cond_timedwait(condvar, &fifo->lock, deadline);
-}
-
size_t vlc_fifo_GetCount(const vlc_fifo_t *fifo)
{
vlc_mutex_assert(&fifo->lock);
More information about the vlc-commits
mailing list