• 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
AU Threading Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AU Threading Question


  • Subject: AU Threading Question
  • From: Stephen Blinkhorn <email@hidden>
  • Date: Thu, 07 Apr 2011 11:16:18 -0600

Hi all,

By now I should know better about all this. However, I have a question about threading issues within an AU.

In the render thread of our AU instruments we calculate various peak meter level readings and store this data into a plain C float array. The array is a member of the AU class itself. In the Cocoa view an NSTimer fires off a GetProperty() event which performs a memcpy of the C array which the view uses to update the meters.

Is there some potential for blocking here if the Render thread is writing the peak data when the GetProperty() call comes in?

Or is it possible that the Render method will have to wait for the GetProperty()read to finish before writing new values?

Thanks for any help,
Stephen _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: AU Threading Question
      • From: Brian Willoughby <email@hidden>
  • Prev by Date: referendum 12-13 giugno
  • Next by Date: Re: Guardmalloc breaks after AudioQueueDispose
  • Previous by thread: referendum 12-13 giugno
  • Next by thread: Re: AU Threading Question
  • Index(es):
    • Date
    • Thread