• 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
Re: wow, this actually works!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wow, this actually works!


  • Subject: Re: wow, this actually works!
  • From: Kenneth Welch <email@hidden>
  • Date: Tue, 28 May 2002 22:30:59 -0400

You'll need to keep this thread around...

CoreMIDI will use the run loop of the thread that you first call it on to do
the notifications, so if that thread dies, your app won't be in too healthy
a state...

<crawls out of cave>

Wow, I had it right the first time, but not for the right reason. Oh well, close enough. :) Thanks for the info Bill.

I have already changed my app's version of that thread so it runs once and dies each time I need to call the MIDI methods, in order to get rid of the "while(true) test booleans" loop which is a noticeable CPU strain even with it set to Thread.MIN_PRIORITY. But that's okay because my app doesn't actually use any notifications -- it only needs to be able to send MIDIPacketList objects out to destinations -- so in my case I'm fine. Scott may need it though.
_______________________________________________
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: wow, this actually works!
      • From: Kenneth Welch <email@hidden>
References: 
 >Re: wow, this actually works! (Scott Ruda, take note :-) (From: Bill Stewart <email@hidden>)

  • Prev by Date: Re: wow, this actually works! (Scott Ruda, take note :-)
  • Next by Date: Re: wow, this actually works!
  • Previous by thread: Re: wow, this actually works! (Scott Ruda, take note :-)
  • Next by thread: Re: wow, this actually works!
  • Index(es):
    • Date
    • Thread