Re: I/O possible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Erik Slagter wrote:
> So I guess it's up to you to ignore signals in threads that do not have 
> a signal handler installed by alsa. I guess you need to make a piece of 
> code that queries the current signal handler for SIGIO and if it's 
> non-null, leave it, otherwise have SIGIO ignored and do this in every 
> thread, after alsa initialization.

A better method may be:

   - Block SIGIO (using sigprocmask SIG_BLOCK) early in main(), before
     creating any threads or calling libraries which will.

   - When ALSA initializes, presumably it will install a SIGIO handler
     and unblock SIGIO in its thread.

That ensures the SIGIO is always delivered to ALSA's thread(s), and
never to any other threads.

-- Jamie

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux