[linux-audio-dev] deblocking snd_seq_event_input()

Jens M Andreasen jens.andreasen at chello.se
Sun May 8 06:22:24 UTC 2005


On Fri, 2005-05-06 at 15:54 +0200, Clemens Ladisch wrote:
> Fons Adriaensen wrote:
> > Shouldn't a call that waits on fd return with an error code when
> > that fd is closed ?
> 
> The ALSA library isn't thread safe.
> 
> > Since snd_seq_event_input() probably uses poll() internally, why
> > doesn't it test for POLLERR,-HUP,-NVAL ?
> 
> It just calls read().

If so, then pthread_cancel() should work just fine together with the
workaround described under BUGS in man pthread_cancel.



> 
> 
> Regards,
> Clemens
> 
-- 

   (
    )
  c[]  //  Jens M Andreasen




More information about the Linux-audio-dev mailing list