Re: SIGIO and AppKit main loop
Re: SIGIO and AppKit main loop
- Subject: Re: SIGIO and AppKit main loop
- From: Michael Rothwell <email@hidden>
- Date: Sun, 28 Mar 2004 22:03:05 -0500
I think I have arrived at the final word on using Objective-C in signal
handlers of any type: "don't."
SIGIO can safely be filed under "never use" or "doesn't work," your
choice.
Too bad, really. Event-driven I/O would be useful. I have two options
remaining -- poll with e.g., select(), or block on recvfrom() in a
thread and notify.
Thanks for the feedback.
Michael Rothwell
email@hidden
On Mar 28, 2004, at 11:57 AM, Michael Rothwell wrote:
>
I used SIGIO to implement an asynchronous SSDP listener with callback
>
notification, written in straight C.
>
>
Will I experience any problems using this bit of code in a Cocoa
>
application? In other words, will my use of SIGIO (and the associated
>
signal handler) clash with anything AppKit does?
>
>
>
Michael Rothwell
>
email@hidden
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.