• 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: Run loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run loops


  • Subject: Re: Run loops
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 5 Jul 2002 18:36:46 -0700

On Friday, July 5, 2002, at 06:28 PM, Mike Laster wrote:

I'd like to convert to a "type 1" approach, but am not sure about mach
messaging. I know I can't use NSMachPort since I can't reliablly use ObjC
from inside of a signal handler.

If I do the Mach port approach, can I do it without the extra thread? I'm
not sure if a thread cand send a message "to itself" so to speak. Where it
sends a message in the handler, and then receives it in the run loop.

You can't use CF or Foundation machinery from within the signal handler, but I don't see why you couldn't send a Mach message from there, using mach_msg(), and catch it in the run loop using e.g. CFMachPort.

Douglas Davidson
_______________________________________________
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.

References: 
 >Re: Run loops (From: Mike Laster <email@hidden>)

  • Prev by Date: Re: Run loops
  • Next by Date: easy and on multiple platforms?
  • Previous by thread: Re: Run loops
  • Next by thread: CFSocketRegisterSocketSignature question
  • Index(es):
    • Date
    • Thread