Re: Property notification questions
Re: Property notification questions
- Subject: Re: Property notification questions
- From: Kurt Revis <email@hidden>
- Date: Wed, 12 Feb 2003 16:43:21 -0800
On Wednesday, February 12, 2003, at 04:29 PM, Chris Reed wrote:
Interesting. The reason I hadn't gone directly to the main run loop is
that I didn't know that signalling Mach ports was nonblocking. So I
created my own thread where I use Mach semaphores.
My understanding is that sending a message will block only when the
receiving port's queue fills up. Also, you can specify the length of
time to block before returning an error. If you set the queue to only
contain 1 message, and you send using a 0 timeout, you will immediately
get an error if a message has already been sent to the port. See the
comments in the source for CFRunLoopWakeUp().
(Note that this means the port's callback must process as many items as
it can get, not just one.)
On Wednesday, February 12, 2003, at 02:19 PM, Bill Stewart wrote:
I'd actually use the AUParameterListener to do this communication...
This sounds like a much easier approach than what I suggested! Shows
that I haven't played with AUs much.
--
Kurt Revis
email@hidden
_______________________________________________
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.