[linux-audio-dev] mutex in process callback?
rm
async at cc.gatech.edu
Thu Mar 27 11:11:01 UTC 2003
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
More information about the Linux-audio-dev
mailing list