• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [CFSocket] Invalidating a CFSocketRef revisited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [CFSocket] Invalidating a CFSocketRef revisited
      • From: Stéphane Sudre <email@hidden>
References: 
 >[CFSocket] Invalidating a CFSocketRef revisited (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: [CFSocket] Invalidating a CFSocketRef revisited
  • Next by Date: Re: [CFSocket] Invalidating a CFSocketRef revisited
  • Previous by thread: [CFSocket] Invalidating a CFSocketRef revisited
  • Next by thread: Re: [CFSocket] Invalidating a CFSocketRef revisited
  • Index(es):
    • Date
    • Thread