Paul Davis wrote:
> 
> >> Yes. That means that be safe, you need to copy every Port, and every
> >> Port-owning object. Moreover, in the scheme you propose, its the
> >> reader (the audio thread) that makes the copy. And since you still can
> >> cause blocking behaviour in the audio thread, i don't see what its
> >> solving.
> >
> >What blocking behaviour?
> 
> wmb() may block on some architectures (not on current Intel).

How many *ns*? ;-))

> and the memory allocations involved in making a copy may involve
> malloc-lib mutexes, page faults and kernel locks via brk(2).

No memory allocation is needed. Please give a look again to my pseudo
code.

Does it exists in English the term "evil's lawyer"?

-- 
Abramo Bagnara                       mailto:[EMAIL PROTECTED]

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!

Reply via email to