• 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: NSFileHandle thread safe ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSFileHandle thread safe ? (From: Alec Carlson <email@hidden>)

  • Prev by Date: Re: NSFileHandle thread safe ?
  • Next by Date: Application Logging and Alarming (newbie question)
  • Previous by thread: Re: NSFileHandle thread safe ?
  • Next by thread: Re: NSFileHandle thread safe ?
  • Index(es):
    • Date
    • Thread