• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Questions on MIDINotifications and threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Questions on MIDINotifications and threads
      • From: Kurt Revis <email@hidden>
  • Prev by Date: getDefaultInputDevices() (Java)
  • Next by Date: Re: Here's a fun potential CoreMIDI bug
  • Previous by thread: Re: getDefaultInputDevices() (Java)
  • Next by thread: Re: Questions on MIDINotifications and threads
  • Index(es):
    • Date
    • Thread