>On Thu, May 06, 2004 at 09:49:31PM -0400, Paul Davis wrote: >> at the risk of endlessly repeating myself, > >If you're being asked this frequently, I'd recommend adding some notes to
I'm not. I'm just a big mouth who always pipes up when SIGIO is mentioned. >the documentation, recommending using poll() and not SND_PCM_ASYNC, and >offering a brief explanation like this one. Well, since I disagree with other people on the ALSA project about the wisdom of supporting SIGIO, this hasn't happened. But yes, even a note to make it clear that there is disagreement about whether it should be used would be a good idea. >> SIGIO is basically >> useless. your handler executes in signal-handling context, and can do >> very, very little. not even all system calls are legal in this context. >> SIGIO is basically a "poor man's thread system", and not much more. > >Practical use aside, isn't that common conditions for a sound callback >(which under some architectures, as I understand it, are called from an >interrupt)? Only MacOS "Classic" did this, and Apple moved away from that design as soon as they could. The key part of the design that needs to be retained is the "callback model". Using poll to implement it is, IMHO, a very, very much better design than using SIGIO. >By the way, do you have a reference to system calls which are not legal I have a list of the legal calls in a book on pthreads programming. I'm afraid I don't feel like typing it in, but someone already posted another reference. --p ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel