Re: Is NSSpeechSynthesizer multithreaded safe
Re: Is NSSpeechSynthesizer multithreaded safe
- Subject: Re: Is NSSpeechSynthesizer multithreaded safe
- From: j o a r <email@hidden>
- Date: Sun, 16 Dec 2007 12:16:01 -0800
Hi David,
If the documentation doesn't explicitly states that a particular
class / method is thread safe (and what thread safety means in that
particular context), you should assume that it isn't, and that you can
only access it from the main thread. Please refer to the Cocoa thread
safety guidelines:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/Multithreading.html
>
If you would want to request that a particular class / method be made
thread safe, or if you need clearer documentation, please file
enhancement requests with Apple.
j o a r
On Dec 16, 2007, at 11:05 AM, David Brennan wrote:
Is NSSpeechSynthesizer multithreaded safe. I am trying to speak to a
number of different files at the same time. I will ask
NSSpeechSynthesizer to speak a large NSString to a file and before it
is finished I will ask NSSpeechSynthesizer to speak a number of
different large NSString objects to different files.
I can not find any information on whether or not I have to wait until
NSSpeechSynthesizer has finished speaking to the first file before I
can start speaking to the second file, or is it safe to do this with a
new thread for each time I want to speak to a file. Using
multithreaded method, seems to be crashing now and again.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden