]> git.proxmox.com Git - mirror_frr.git/commit
lib: add mt-safe variants for stream_fifo ops
authorQuentin Young <qlyoung@cumulusnetworks.com>
Sat, 21 Apr 2018 20:51:54 +0000 (16:51 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 7 May 2018 15:37:07 +0000 (11:37 -0400)
commit363e24c65140d07c2ced580698bd1427c6b99a55
tree9fa78138b63b883535e8b1a8f099d7fd721eb17a
parente8f95403e4b4d55c605ef49a0d772f30834134a4
lib: add mt-safe variants for stream_fifo ops

stream_fifo is used as our standard internal message queue. Message
queues are useful in multithreaded environments. Up until now I have
been doing my own synchronization when using stream_fifo in this way;
this patch gets rid of the need for that boilerplate and decreases the
risk of locking mistakes when working with this datastructure.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/stream.c
lib/stream.h