On Fri, Oct 17, 2008 at 02:33:00PM -0400, Paul Coccoli wrote:
> There's no chance that a compiler optimization is hiding the bug,
But there is nothing that stops the compiler from writing
read_ptr any number of times it wants unless you make that
variable volatile.
> HOWEVER, if you go back
Indeed. The original version really invited the problem,
by *forcing* the compiler to write read_ptr twice.
Ciao,
--
FA
Laboratorio di Acustica ed Elettroacustica
Parma, Italia
Lascia la spina, cogli la rosa.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.