urcu lfstack: pop needs rcu read lock
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 25 Aug 2010 15:16:34 +0000 (11:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 25 Aug 2010 15:16:34 +0000 (11:16 -0400)
commit4fc06b7fbadc933271cf1b75e03a923486f7247b
treea32ffc5b09123c0fcc76395e0a8c1ad99320882d
parent7520203585dce2fda38454d3630febe0a2b808de
urcu lfstack: pop needs rcu read lock

The pop side needs to hold the RCU read lock to deal with ABA problem.
The push side does not need to hold the RCU read lock because even if the next
item is changed to the same value initially read, the stack will still be
consistent.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/rculfstack-static.h
This page took 0.025423 seconds and 4 git commands to generate.