[libqb] [asalkeld/libqb] 9b3be0: ringbuffer: use atomic ops on ringbuffer chunk mag...
Jeremy Fitzhardinge
jeremy at goop.org
Wed Apr 24 01:59:38 UTC 2013
Branch: refs/heads/master
Home: https://github.com/asalkeld/libqb
Commit: 9b3be0b4509e4f3b3aef57e0287a68c73e5ed4ca
https://github.com/asalkeld/libqb/commit/9b3be0b4509e4f3b3aef57e0287a68c73e5ed4ca
Author: Jeremy Fitzhardinge <jeremy at 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 at redhat.com>
More information about the quarterback-devel
mailing list