From: Mathieu Desnoyers Date: Sat, 6 Nov 2010 19:09:29 +0000 (-0400) Subject: Add compiler barriers to read-side for mutex ordering X-Git-Tag: v0.5.0~6 X-Git-Url: https://git.lttng.org/?p=urcu.git;a=commitdiff_plain;h=42a3f1f99827c1bd73270966d4fffd6157809a7c;hp=42a3f1f99827c1bd73270966d4fffd6157809a7c Add compiler barriers to read-side for mutex ordering Ensure that mutex acquisition/release is not reordered wrt rcu read lock/unlock. No impact in practice because pthreads lock/unlock primitives act as memory barriers. But we should provide the same guarantees we are expecting from other locking primitives, hence this modification. Signed-off-by: Mathieu Desnoyers ---