Re: Where do asynchronous API do their "work"?
Re: Where do asynchronous API do their "work"?
- Subject: Re: Where do asynchronous API do their "work"?
- From: email@hidden
- Date: Sun, 13 Nov 2005 14:55:46 +1100
You could use gdb and break on pthread_create?
I've never done that before and will have to go read about it. Are
you
suspecting that things like NSURLConnection may spawn a pthread to
do their
work?
Well, all threading on MacOS X is implemented using pthreads, so
NSThread (or the Carbon equivalent) presumably has to call
pthread_create at some point.
http://developer.apple.com/macosx/multithreadedprogramming.html
I have no real idea whether NSURLConnection in particular uses
multiple threads or not... I doubt it, since it probably uses
CFNetwork or similar, which is all runloop based, as far as I know.
Wade Tregaskis
ICQ: 40056898
AIM, Yahoo & Skype: wadetregaskis
MSN: email@hidden
iChat & email: email@hidden
Jabber: email@hidden
Google Talk: email@hidden
http://homepage.mac.com/wadetregaskis/
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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