One thread used per CFSocket?
One thread used per CFSocket?
- Subject: One thread used per CFSocket?
- From: Joel Reymont <email@hidden>
- Date: Sat, 14 Feb 2009 08:49:33 +0000
From reading the source code, it appears that a separate thread
(CFSocketManager) is used per CFSocket. Is my reading correct?
static void __CFSocketManager(void * arg)
{
if (objc_collecting_enabled())
auto_zone_register_thread(auto_zone());
SInt32 nrfds, maxnrfds, fdentries = 1; // <----- just one
descriptor!!!
SInt32 rfds, wfds;
fd_set *exceptfds = NULL;
fd_set *writefds = (fd_set
*)CFAllocatorAllocate(kCFAllocatorSystemDefault, fdentries *
sizeof(fd_mask), 0);
fd_set *readfds = (fd_set
*)CFAllocatorAllocate(kCFAllocatorSystemDefault, fdentries *
sizeof(fd_mask), 0);
...
Thanks, Joel
---
http://tinyco.de
--- Mac & iPhone
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden