Re: URL loading system not threadsafe?
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