atomicqueue: fix subtle race
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 24 Feb 2012 11:51:24 +0000 (12:51 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 7 Apr 2012 14:24:53 +0000 (15:24 +0100)
commit930c0197218b216ba78a04750fc4706f31aa7d98
tree6f5d0f79cfb24b6a30df1769cbe7ab9290e7112d
parentd05d29d0c99aa60b542bd5b8e98a87ae43b38880
atomicqueue: fix subtle race

Fix a race where the reader would see the updated the tail pointer before the
write could write the data into the queue. Fix this by having a separate reader
tail pointer that is only incremented after the writer wrote the data.
gst/gstatomicqueue.c