On Mon, Dec 14, 2009 at 02:45:38PM -0500, Stephen Sinclair wrote:
> I didn't read the others, but I looked at this one and I think it's
True. OTOH having devoted cq. wasted part of my life
programming SPARC machines I can confirm Paul Davis'
comment on those: sig_atomic_t on these machines was
24 bits. But I *never* understood how on earth they
managed to create this anomaly on what was after all
a full 32-bit architecture.
A simple pattern I use to avoid the incr/decr problem
is to use two variables, each one of them being modified
(incremented) by only one thread. Instead of testing for
zero test for equality.
Ciao,
--
FA
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
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.