Branch: refs/heads/master
Home:
https://github.com/asalkeld/libqb
Commit: 9b3be0b4509e4f3b3aef57e0287a68c73e5ed4ca
https://github.com/asalkeld/libqb/commit/9b3be0b4509e4f3b3aef57e0287a68c7...
Author: Jeremy Fitzhardinge <jeremy(a)goop.org>
Date: 2013-04-23 (Tue, 23 Apr 2013)
Changed paths:
M lib/ringbuffer.c
Log Message:
-----------
ringbuffer: use atomic ops on ringbuffer chunk magic
The ringbuffer protocol uses the chunk magic number to indicate to the
other side what state a chunk is in. It's therefore important to use
strongly ordered memory writes to make sure that neither the compiler
nor the CPU change the apparent order of the writes, since that would
result in corrupted messages.
Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>