Boost logo

Boost :

Subject: Re: [boost] [Circular Buffer] Partial thread-safety
From: Lasse Kärkkäinen (tronic+67zr_at_[hidden])
Date: 2008-11-26 07:11:10


> Where is the magic? Can you point to some documentation or how to use it?

It seems to make the assumption that volatile variable reads and writes
are atomic. This, among with careful organization of those operations,
allows safe concurrent access.

C++03 does not define any atomic operations, but in practice these seem
to be atomic on all implementations with int-sized and smaller variables.

Documentation for the JACK ring buffer (also links to the header code):
http://jackaudio.org/files/docs/html/ringbuffer_8h.html


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk