• 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: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm


  • Subject: Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm
  • From: "Paul Sanders" <email@hidden>
  • Date: Mon, 21 Jun 2010 23:16:44 +0100

Wow!  That __is__  worth knowing.  Thank you.
 
Regards,
 
----------------------------------------------------------------------
Paul Sanders
AlpineSoft
http://www.alpinesoft.co.uk
 
----- Original Message -----
From: William Stewart
To: Paul Sanders
Cc: Stephen F. Booth ; email@hidden
Sent: Monday, June 21, 2010 11:03 PM
Subject: Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm


On Jun 21, 2010, at 12:45 AM, Paul Sanders wrote:

OK, thanks very much.  It looks like method resolution is the only time objc_msgSend can block so it is possible to use objC calls in an IOProc if one takes a bit of care, which is what I wanted to establish. 

No, you can't. At least, you can't in an ObjC app that is running under GC.

The reason why is that GC will stop a thread, and while in most cases the stopping is minimal, it is not unbounded. We deliberately do not create GC contexts on the I/O thread, so doing any operation with the ObjC runtime on that thread will crash in snow leopard in a GC app. That also includes interacting with any CF object; many of the CF objects are implemented using ObjC, and due to the bridging between CF and ObjC, this becomes a problem (so using CF on the I/O thread as well is not advised).

In a non-GC case, then you have whatever restrictions imposed on you by the ObjC runtime.

Bill
 
 _______________________________________________
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

References: 
 >Question: What is the impact of changing .cpp AudioUnitEffect source to .mm (From: Motti Shneor <email@hidden>)
 >Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm (From: Brian Willoughby <email@hidden>)
 >Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm (From: Kyle Sluder <email@hidden>)
 >Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm (From: "Paul Sanders" <email@hidden>)
 >Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm (From: "Stephen F. Booth" <email@hidden>)
 >Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm (From: "Paul Sanders" <email@hidden>)
 >Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm (From: William Stewart <email@hidden>)

  • Prev by Date: Re: Protocol for processing audio data from input and writing to file
  • Next by Date: Re: Sorry, still no control update
  • Previous by thread: Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm
  • Next by thread: Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm
  • Index(es):
    • Date
    • Thread