On Fri, Oct 17, 2008 at 08:36:56PM +0200, Olivier Guilyardi wrote:
> I don't see why it's fragile. There's no reason for the compiler to modify
There is no reason indeed, and only a completely braindead
compiler would do it unless forced to, but it is not formally
excluded unless you make read_ptr volatile. Using a temporary
variable doesn't change the picture at all.
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.