• 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: Update Cocoa object from callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Update Cocoa object from callback


  • Subject: Re: Update Cocoa object from callback
  • From: john <email@hidden>
  • Date: Wed, 28 May 2003 16:08:43 -0400

Hi Chris,

I am using it from the IOProcs in my app, and the audio device is set-up for 2048 samples I think. It needs to do many things as a result of the IOProcs coming through, so seeing that on the list I thought it'd be quick improvement to offload the work to the main thread. It's called at least once through the IOProcs, on occasion twice.

-- John


How frequently?

I don't know about the overhead of performSelectorOnMainThread:, but if you're doing it _really_ frequently (hundreds of times a second? i don't know..) you should maybe consider using a more direct method of inter-thread communication, imho.

-chris
_______________________________________________
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.

References: 
 >Re: Update Cocoa object from callback (From: Chris Reed <email@hidden>)

  • Prev by Date: Re: Can anyone comment on Crashes in AUParameterSet?
  • Next by Date: Input and output busses hard coded to 0 in AUEffectBase::Render
  • Previous by thread: Re: Update Cocoa object from callback
  • Next by thread: Re: Update Cocoa object from callback
  • Index(es):
    • Date
    • Thread