It would be better to use poll with two objects: the
sequencer, and
some pipe or something like that used for communication between
threads.
although i use this model as a basic pattern in ardour and other
software, i think it might be worth asking fons exactly what other
approaches he can imagine? it appears he might like something along
the lines of snd_seq_poke(), which would cause the poll on the
sequencer fd to return with POLLHUP or something related in the event
set. fons?
--p