Re: Run loops
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.