• 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: Henk Kampman <email@hidden>
  • Date: Sat, 19 Nov 2005 09:58:19 +0100


On 19-nov-2005, at 2:02, Colin Barrett wrote:

You should never assume that something in any of the Apple frameworks is threadsafe unless it is explicitly stated otherwise (except perhaps NSLock ;-)

Agreed!

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!

Henk


_______________________________________________ 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
  • Follow-Ups:
    • Re: URL loading system not threadsafe?
      • From: j o a r <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>)

  • Prev by Date: Re: URL loading system not threadsafe?
  • Next by Date: Re: addSubviews: How can I populate the first tier of the Container View only?
  • Previous by thread: Re: URL loading system not threadsafe?
  • Next by thread: Re: URL loading system not threadsafe?
  • Index(es):
    • Date
    • Thread