Questions on MIDINotifications and threads
Questions on MIDINotifications and threads
- Subject: Questions on MIDINotifications and threads
- From: Pete Yandell <email@hidden>
- Date: Tue, 19 Feb 2002 16:36:43 +1100
Am I correct in assuming that my MIDINotifyProc will get called from a
thread over than my applications main thread? Is this also one of the
magic, high-priority CoreMIDI threads?
If that's the case, would my MIDINotifyProc be better off signaling my
application somehow that the setup has changed, and letting the app do
the hard work in its own thread? What's the best/easiest way of doing
this?
What seems to be happening in my app at the moment is that a
notification arrives and then, half way through the method that
processes the notification, another notification arrives and interrupts
the first. (I presume this means that my MIDINotifyProc is actually
being run in two separate CoreMIDI threads simultaneously!) Meanwhile
my app is halfway through updating its data structures and gets mighty
confused. Is this expected behavior?
Pete Yandell
http://pete.yandell.com/
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.