On 15 Mar 2017, at 10:16 pm, Laurent Noudohounsi <email@hidden> wrote: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: Chris Adamson <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>) >Re: Swift functions in render callback (From: Laurent Noudohounsi <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
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
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