[vlc-devel] [RFC PATCH 1/3] fifo: add block_FifoNewExt: create a fifo with custom lock and cond

Rémi Denis-Courmont remi at remlab.net
Wed Apr 1 16:29:38 CEST 2015


Le 2015-04-01 17:13, Thomas Guillem a écrit :
> ---
>  include/vlc_block.h |  1 +
>  src/libvlccore.sym  |  1 +
>  src/misc/fifo.c     | 71
> ++++++++++++++++++++++++++++++++++++-----------------
>  3 files changed, 50 insertions(+), 23 deletions(-)

This is ugly as hell and I fail to see any point. If you want a FIFO 
without lock or with completely custom locking, then all that is left is 
the linked list. You really should not be using this code for a mere 
linked list implementation.

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list