atomicqueue: fix subtle race
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 24 Feb 2012 11:51:24 +0000 (12:51 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 24 Feb 2012 11:51:24 +0000 (12:51 +0100)
commit61e8fa0dc5dc5efb3b55101861df1f891bb64694
tree5d856a6c5db7c5f5496a5532f78d4f88fde0c68f
parentbeea57dca7bea36385d56e04cb637c959199a32d
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