10.2.2, MIDI receive thread, and run loop
10.2.2, MIDI receive thread, and run loop
- Subject: 10.2.2, MIDI receive thread, and run loop
- From: Kurt Revis <email@hidden>
- Date: Thu, 14 Nov 2002 18:38:23 -0800
This is partly a heads-up and partly a question:
On 10.2.2, the behavior of CoreMIDI's receive thread has changed
slightly. It used to be using a CFRunLoop to receive messages, but
apparently that is no longer the case. Now when my MIDIReadProc is
called, the run loop is not running.
I had been adding a timer to this run loop in order to handle sysex
timeouts. When I received sysex data I set up a timer to fire in the
future, and if the timer fired before the sysex message was completed,
I knew that something had failed and I should react appropriately. This
worked well and was very elegant, but probably I shouldn't have been
relying on this implementation detail.
Now that the run loop isn't running in that thread, it seems like I'll
have to do a bunch more work to set up a timer in another thread, and
deal with synchronization issues, etc. Has anyone else come up with a
brilliant way to do this?
--
Kurt Revis
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.