fifo: Make writes atomic.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 22 Dec 2011 23:18:36 +0000 (00:18 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 22 Dec 2011 23:18:36 +0000 (00:18 +0100)
commit9eb0d8bab1c475edf73c36146d1c3d31ea47f997
treec8701f68cfd4b6e3fa2b8579b0b2596f959fc1bb
parentdd1fb6528791b32ac9d6b3c2d81707cf1949ec5d
fifo: Make writes atomic.
Prior to this a X bytes write could be seen as less than X bytes being
available if the check was done at an unfortunate moment.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/fifo.c