• 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: SIGIO and AppKit main loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: SIGIO and AppKit main loop
      • From: Kyle Moffett <email@hidden>
References: 
 >SIGIO and AppKit main loop (From: Michael Rothwell <email@hidden>)

  • Prev by Date: Re: SIGIO and AppKit main loop
  • Next by Date: Re: Custom TabViewItem Things
  • Previous by thread: SIGIO and AppKit main loop
  • Next by thread: Re: SIGIO and AppKit main loop
  • Index(es):
    • Date
    • Thread