commit | 61e8fa0dc5dc5efb3b55101861df1f891bb64694 | [log] [tgz] |
---|---|---|
author | Wim Taymans <wim.taymans@collabora.co.uk> | Fri Feb 24 12:51:24 2012 +0100 |
committer | Wim Taymans <wim.taymans@collabora.co.uk> | Fri Feb 24 12:51:24 2012 +0100 |
tree | 5d856a6c5db7c5f5496a5532f78d4f88fde0c68f | |
parent | beea57dca7bea36385d56e04cb637c959199a32d [diff] |
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.