• 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: audio unit deinstantiation thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: audio unit deinstantiation thread


  • Subject: Re: audio unit deinstantiation thread
  • From: andre <email@hidden>
  • Date: Fri, 15 Jul 2011 01:09:37 +0200


On 15.07.2011, at 00:24, Jeremy Todd wrote:

I can see how it's natural to write hosts that don't use the main thread to interact with (the non-view part of) Audio Units at all (indeed one of our own hosts behaved this way for a while during development), but it's really difficult to do some things in plug- ins with no guarantees at all about what thread you're on.

Natural?

Objects that require the shutdown of threads, semaphores, and other multi-threading related objects must be deleted on the same thread they were created on. It is fatal to signal or delete a semaphore/lock from a foreign thread. Any host that does not ensure this is making a huge mistake. Or it is making the false assumption that all plugins only do basic DSP processing.

We run a dedicated worker thread that performs the creation and deletion of critical components on behalf of the plugin to ensure this, if the host does not. Fortunately most hosts do. The plugin does a lot of network communication and therefore requires proper shutdown.

Andre

_______________________________________________
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: audio unit deinstantiation thread
      • From: Brian Willoughby <email@hidden>
References: 
 >audio unit deinstantiation thread (From: Jeremy Todd <email@hidden>)
 >Re: audio unit deinstantiation thread (From: Paul Davis <email@hidden>)
 >RE: audio unit deinstantiation thread (From: Jeremy Todd <email@hidden>)

  • Prev by Date: RE: audio unit deinstantiation thread
  • Next by Date: Re: MusicPlayer + MusicSequenceSetUserCallback
  • Previous by thread: RE: audio unit deinstantiation thread
  • Next by thread: Re: audio unit deinstantiation thread
  • Index(es):
    • Date
    • Thread