[linux-audio-dev] deblocking snd_seq_event_input()

Clemens Ladisch clemens at ladisch.de
Mon May 9 08:10:07 UTC 2005


Jens M Andreasen wrote:
> On Sun, 2005-05-08 at 12:50 +0200, Fons Adriaensen wrote:
> > But this is besides the point. In my original problem it is not the intention
> > to terminate the thread - just to force the snd_seq_event_input() to return.
> > The thread could well close the handle, open a new one and continue normal
> > operation. The simplest solution is probably to send some fake event to the
> > midi port.

Yes, you can use a user-defined event for this.

> Perhaps poll() with a shortish timeout? Wake up now and then and do some
> housekeeping.

It would be better to use poll with two objects: the sequencer, and
some pipe or something like that used for communication between
threads.


Regards,
Clemens




More information about the Linux-audio-dev mailing list