• 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: URL loading system not threadsafe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL loading system not threadsafe?


  • Subject: Re: URL loading system not threadsafe?
  • From: j o a r <email@hidden>
  • Date: Sat, 19 Nov 2005 11:03:23 +0100


On 19 nov 2005, at 09.58, Henk Kampman wrote:

But read the following comment about sendSynchronousRequest in NSURLConnection.h

"The calling thread is blocked while the asynchronous loading
system performs the URL load on a thread spawned specifically for
this load request. No special threading or run loop configuration
is necessary in the calling thread in order to perform a
synchronous load. For instance, the calling thread need not be
running its run loop."

Sounds like threadsave to me!

I disagree, I don't think it says anything like that.

Among the links that I re-send to Cocoa-Dev from time to time, this is probably in the top-five:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ Multithreading/articles/CocoaSafety.html>

I don't see any NSURL*** class in these lists, so we would probably have to assume that it's not safe to call the URL loading system from multiple threads at the same time - actually, it might not even be safe to make calls from anything but the main thread.

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: 
 >Re: URL loading system not threadsafe? (From: Henk Kampman <email@hidden>)
 >Re: URL loading system not threadsafe? (From: Colin Barrett <email@hidden>)
 >Re: URL loading system not threadsafe? (From: Henk Kampman <email@hidden>)

  • Prev by Date: Re: using NSPopUpButtonCell
  • Next by Date: Modal dialog weirdness
  • Previous by thread: Re: URL loading system not threadsafe?
  • Next by thread: Re: URL loading system not threadsafe?
  • Index(es):
    • Date
    • Thread