Re: Update Cocoa object from callback
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.