Re: [linux-audio-dev] deblocking snd_seq_event_input()

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Mon May 09 2005 - 11:10:07 EEST

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
Received on Mon May 9 12:15:05 2005

This archive was generated by hypermail 2.1.8 : Mon May 09 2005 - 12:15:06 EEST