Re: Where to look for the replacement for a deprecated API?
Re: Where to look for the replacement for a deprecated API?
- Subject: Re: Where to look for the replacement for a deprecated API?
- From: Ken Thomases <email@hidden>
- Date: Mon, 09 Dec 2013 23:13:00 -0600
On Dec 9, 2013, at 9:08 PM, email@hidden wrote:
> If you use raise, and you are running under the debugger, your program will stop in the main thread (that gets all the signals sent to the process in general) and you'll have to go hunting for the thread that actually raised the signal.
>
> Better to use:
>
> pthread_kill (pthread_self(), SIGINT)
>
> then it will deliver the thread to the one that raised the exception, and the debugger will more usefully blame the stop on that thread.
I would think that the Debugger() call probably more closely corresponds to SIGTRAP than SIGINT.
Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden