• 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: Swift functions in render callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift functions in render callback


  • Subject: Re: Swift functions in render callback
  • From: Laurent Noudohounsi <email@hidden>
  • Date: Wed, 15 Mar 2017 12:16:00 +0100

So the best way would be to use Swift with an Objective-C wrapper in order to be able to use C++ in Objective-C++ code?

2017-03-15 9:47 GMT+01:00 Paul Davis <email@hidden>:
Swift is not an RT-safe language.

All code executed inside the render callback must be RT safe. No disk i/o, no blocking synchronization, no objective C, no Swift.

Will it work if you use Swift? Probably. Quite possibly even 99% of the time. Doesn't make it OK.

On Wed, Mar 15, 2017 at 5:25 AM, Dave O'Neill <email@hidden> wrote:
Hi,

Is it safe to call Swift functions from the audio render callback?  I know  objc_msgSend can take a lock, is this also concern with swift functions?

Dave  

 _______________________________________________
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



 _______________________________________________
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


 _______________________________________________
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: Swift functions in render callback
      • From: Nikolozi Meladze <email@hidden>
References: 
 >Swift functions in render callback (From: "Dave O'Neill" <email@hidden>)
 >Re: Swift functions in render callback (From: Paul Davis <email@hidden>)

  • Prev by Date: Re: Swift functions in render callback
  • Next by Date: Re: Swift functions in render callback
  • Previous by thread: Re: Swift functions in render callback
  • Next by thread: Re: Swift functions in render callback
  • Index(es):
    • Date
    • Thread