Paul Davis wrote:
I'm no memory barrier expert, but from what I read this looks like a complex
topic. Adding them to jack's ring buffer may be hazardous without carefully
crafted test cases. Bugs related to missing barriers may or may not happen
according to various hardware-related issues.
Here's what Ross Bencina says about it: "the correct implementation of these
algorithms also requires an understanding of the use of memory barriers to force
the order of some memory reads and writes on SMP systems. This is because memory
controllers may reorder reads and writes as observed by other processors on an
SMP system (or by prehipherals on a uniprocessor system)."
As a user of these projects I sense that people from Portaudio, PulseAudio and
Jack could collaborate on this topic. And Ross Bencina's initiative may be the
right place for this:
Olivier Guilyardi / Samalyse
Linux-audio-user mailing list