Re: [linux-audio-dev] questions to be resolved

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

Subject: Re: [linux-audio-dev] questions to be resolved
From: Abramo Bagnara (abramo_AT_alsa-project.org)
Date: Tue May 22 2001 - 19:46:29 EEST


Paul Davis wrote:
>
> >These threads are becoming very chaotic... are you sure to have read my
> >answer? Why do you talk about "atomic pointer swap"? graph is changed by
> >engine, no concurrency exists.
>
> The engine's audio thread cannot change the graph, since its a
> non-deterministic operation that may interfere with low-latency
> real-time operation. Therefore, there are at least two threads

"may" is a bit weak... you're assuming that audio thread does not have
enough free time to change the graph. This is not sure.

> operating on the graph: the audio thread and whichever thread is
> changing the graph.

But, also if it have not enough free time, simply the audio thread would
change a part of graph this cycle, another part the next cycle and so
on.

I don't see why you want to enforce concurrency when it's not strictly
needed and when this means to ask for troubles.

-- 
Abramo Bagnara                       mailto:abramo_AT_alsa-project.org

Opera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy

ALSA project http://www.alsa-project.org It sounds good!


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

This archive was generated by hypermail 2b28 : Tue May 22 2001 - 20:20:47 EEST