Re: [linux-audio-dev] mutex in process callback?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] mutex in process callback?
From: rm (async_AT_cc.gatech.edu)
Date: Thu Mar 27 2003 - 18:01:21 EET


On Thu, Mar 27, 2003 at 04:20:40PM +0100, Lukas Degener wrote:

> There's one thing however, i am not completly sure about:
> What happens if the working thread swaps buffers two times within one
> cycle of the
> playback thread? I'll try to do a simple diagram:
>
> Ah... another reply just droped into my mailbox <beep!> ... let's see
> what Paul suggests. :-)

use the queuing/ringbuffer idea to solve that (the pointer copying
scheme is basically an adhoc ringbuffer with only two locations).

        rob

----
Robert Melby
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:     ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt4255a
Internet: async_AT_cc.gatech.edu


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Mar 27 2003 - 18:06:24 EET