• 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: scheduling a block from a render callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scheduling a block from a render callback


  • Subject: Re: scheduling a block from a render callback
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 14 Jan 2014 18:42:03 -0800

On Jan 14, 2014, at 6:37 PM, Ross Bencina <email@hidden> wrote:
>
>> On 15/01/2014 3:12 AM, Kyle Sluder wrote:
>> Something like
>> AudioUnitPostNotificationAsync(uint32_t notification) and
>> AudioUnitAddNotificationHandler(dispatch_queue_t queue, void
>> (^handler)(AudioUnit unit))
>
> That assumes that constructing a block is real-time safe. It probably isn't.

It makes no such assumption. AddNotificationHandler would be called from the non-realtime-thread.  PostNotification would be called from the realtime thread; this function would perform a modicum of realtime-thread-safe work to cause a non-realtime thread to submit the registered block to its corresponding dispatch queue.

--Kyle Sluder
 _______________________________________________
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: scheduling a block from a render callback
      • From: Ross Bencina <email@hidden>
References: 
 >scheduling a block from a render callback (From: Lucas Ives <email@hidden>)
 >RE: scheduling a block from a render callback (From: Tim Dorcey <email@hidden>)
 >Re: scheduling a block from a render callback (From: Paul Davis <email@hidden>)
 >RE: scheduling a block from a render callback (From: Tim Dorcey <email@hidden>)
 >Re: scheduling a block from a render callback (From: Doug Wyatt <email@hidden>)
 >Re: scheduling a block from a render callback (From: Paul Davis <email@hidden>)
 >Re: scheduling a block from a render callback (From: Kyle Sluder <email@hidden>)
 >Re: scheduling a block from a render callback (From: Ross Bencina <email@hidden>)

  • Prev by Date: Re: scheduling a block from a render callback
  • Next by Date: Re: scheduling a block from a render callback
  • Previous by thread: Re: scheduling a block from a render callback
  • Next by thread: Re: scheduling a block from a render callback
  • Index(es):
    • Date
    • Thread