• 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: Finlay Dobbie <email@hidden>
  • Date: Wed, 14 Sep 2005 11:51:59 +0100

On 14/09/05, Alec Carlson <email@hidden> wrote:
> Finlay,
>
> That¹s what I was hoping. However, the replies to this question are running
> 3:1 in favor of the notification occurring in the threads context. It is
> certainly possible that NSFileHandle forces the
> NSFileHandleReadCompletionNotification notification on the main run loop ­
> that¹s what I want and it¹s easy enough to do, but... Does anyone know for
> certain ­ main run loop (main thread) or NSFileHandle background thread

I'm pretty certain I remember it being posted in the main application
runloop when I last used it, which was in ~Puma days. The debugger
will certainly tell you which thread you're in, if you put a
breakpoint in your notification callback.

I can't see the point of it being implemented any other way. I think
it's just that the documentation is being deficient. Perhaps one of
the frameworks guys can chip in and confirm.

 -- Finlay
 _______________________________________________
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: 
 >Re: NSFileHandle thread safe ? (From: Finlay Dobbie <email@hidden>)
 >Re: NSFileHandle thread safe ? (From: Alec Carlson <email@hidden>)

  • Prev by Date: Re: Frameworks issue
  • Next by Date: null selector
  • Previous by thread: Re: NSFileHandle thread safe ?
  • Next by thread: NSWindowContoller communication issues
  • Index(es):
    • Date
    • Thread