Re: Where is CFStream sources or is CFStream APSL?
Re: Where is CFStream sources or is CFStream APSL?
- Subject: Re: Where is CFStream sources or is CFStream APSL?
- From: John Iarocci <email@hidden>
- Date: Fri, 8 Aug 2003 10:56:28 -0700
On Friday, Aug 8, 2003, at 10:31 US/Pacific, Becky Willrich wrote:
Why do an implementation like CFSocket poll the select() routine
instead of
using interrupts by signals?
It's not really polling - CFSocket is blocking in select(). The
secondary thread sits idle, blocked in select, until one of the
sockets sees some activity, then it kicks out and signals across to
the interested thread(s).
If by signals you are referring to BSD signals, the reason we don't use
them is because they are not thread-safe (another way to say this is
that there is very little you can do reliably in a signal handler).
- John Iarocci
CoreServices, Mgr.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.