Re: [LAU] Simple, easy multithreaded circular buffer library for Linux?

From: Kjetil S. Matheussen <k.s.matheussen@email-addr-hidden>
Date: Fri Oct 17 2008 - 15:25:58 EEST

On Fri, 17 Oct 2008, Olivier Guilyardi wrote:

> Olivier Guilyardi wrote:
>> Paul Davis wrote:
>>> On Wed, 2008-10-15 at 13:02 +0200, Olivier Guilyardi 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.
>>> the point of memory barriers is really to remove the need for test
>>> cases :)
>>
>> I meant Test First, not putting a memory barrier between us and past bugs ;)
>>
>> My concern is: people around say memory barriers are missing, but could anyone
>> write a unit test that actually turns this assumption into a bug?
>
> Okay, I wrote such a test. It fails with Jack's ringbuffer (jack1 r3004) but
> succeeds with Portaudio's one (r1240).
>

I might be wrong (not unusual), but your code looks correct to me.
Good work!

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Fri Oct 17 16:15:02 2008

This archive was generated by hypermail 2.1.8 : Fri Oct 17 2008 - 16:15:02 EEST