• 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: Property notification questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Property notification questions (From: Chris Reed <email@hidden>)

  • Prev by Date: Re: Property notification questions
  • Next by Date: Re: Getting raw audio data from an AIFF file
  • Previous by thread: Re: Property notification questions
  • Next by thread: Re: Property notification questions
  • Index(es):
    • Date
    • Thread