[vlc-devel] [PATCH] fifo: remove unused vlc_fifo_TimedWaitCond()
RĂ©mi Denis-Courmont
remi at remlab.net
Sat Apr 11 17:14:36 CEST 2020
---
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);
--
2.26.0
More information about the vlc-devel
mailing list