Re: NSFileHandle thread safe ?
Re: NSFileHandle thread safe ?
- Subject: Re: NSFileHandle thread safe ?
- From: j o a r <email@hidden>
- Date: Tue, 13 Sep 2005 22:32:45 +0200
On 13 sep 2005, at 19.05, Alec Carlson wrote:
Now, when device data is read in the NSFileHandle background thread,
NSFileHandle posts an NSFileHandleReadCompletionNotification
notification.
My question is, are these notifications executed in the context of the
NSFileHandle background thread or are they executed off of the main
run loop
? This has a bearing on whether I can :writeData: from both the
main thread
AND the NSFileHandleReadCompletionNotification method.
Probably not:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
Multithreading/articles/CocoaSafety.html>
The documentation only specifies that the notification is posted,
but not it's context.
In that case you should assume that the general rules apply:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
Notifications/Tasks/Threading.html>
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden