Re: signal(SIGUSR2, SIG_IGN) not respected by Xcode/GDB?
Re: signal(SIGUSR2, SIG_IGN) not respected by Xcode/GDB?
- Subject: Re: signal(SIGUSR2, SIG_IGN) not respected by Xcode/GDB?
- From: Påhl Melin <email@hidden>
- Date: Wed, 25 Mar 2009 14:49:06 +0100
2009/3/25 Benjamin Stiglitz <email@hidden>:
>> I'm not completely satisfied using signals (especially since they are
>> not dynamically allocated and I may want to use more in the future)
>> but signals was the lowest level alternative I could think about. This
>> code will be used _very_ frequently and I want to use the lowest
>> possible level, mainly for performance reasons but also for ease of
>> setup. And signals seems like a reasonable alternative considering
>> this.
>
> A pipe is the canonical way to tickle a thread waiting select/poll/kqueue.
> You can rest assured that pipes are quite performant.
Thanks Ben. I will take a closer look at pipes. They have the
additional advantage of being more flexible than fixed allocated
signals. (Why can't Unix be a "modern" OS with dynamically allocated
and named signals? :-)
/ Påhl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden