urcu-defer: remove unnecessary memory barrier
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 20 Sep 2009 16:03:37 +0000 (12:03 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 20 Sep 2009 16:03:37 +0000 (12:03 -0400)
commit9374f873bd741e91b0b5c78a8e0406d849ca752e
treee47f63f2f6918fe05c7c59d9f9ef9d7d8150c345
parent0d0e6c21fbf509aebecd5f1c5cbac43a0dc69f6d
urcu-defer: remove unnecessary memory barrier

All synchronization between queue producer/consumer is performed by the write to
"head". Before this write, none of the queued data is visible from the consumer
point of view.

Therefore, just a single wmb() is required before writing to head to ensure
correct synchronization. This matches with the rmb() after reading head on the
consumer side.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-defer-static.h
This page took 0.025893 seconds and 4 git commands to generate.