Re: [CFSocket] Invalidating a CFSocketRef revisited
Re: [CFSocket] Invalidating a CFSocketRef revisited
- Subject: Re: [CFSocket] Invalidating a CFSocketRef revisited
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Fri, 21 Jan 2011 10:16:45 +0000
On 20 Jan 2011, at 17:26, Stéphane Sudre wrote:
> For instance, if you send a message port from your callback and wait for an answer, a run loop is created.
How are you waiting for an answer? In most cases when you want to wait for a specific source while you're already within a run loop callback, you should attach that source to a custom run loop mode and then run the nested run loop in that mode. This will prevent sources that are attached to the default run loop mode, like your CFSocket in this example, from firing.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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