[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set_terminate and set_unexpected with threads
From: |
Guy Harrison |
Subject: |
Re: set_terminate and set_unexpected with threads |
Date: |
Fri, 07 Jan 2005 23:00:08 GMT |
User-agent: |
KNode/0.7.7 |
Domenico Andreoli wrote:
> Hi all,
>
> I'm trying to set up a uncaught exception handler at process level in a
> c++ program. I'm using g++ Debian package version 1:3.3.5-5 and
> std::set_terminate() and std::set_unexpected() (where are they
> documented?).
>
> My program is multi-threaded. I'm already able to set up my handlers in
> the main thread and catch all the exceptions thrown by the main thread.
> What I'm not able to do is to trap all the uncaught exceptions thrown by
> non-main threads. It looks like as if set_terminate and set_unexpected
> always set the main thread handlers.
>
> Anybody has a hint for me? Have I to dive into the gcc code? arghh...
You've probably found it already...
comp.programming.threads ;-)
- Re: set_terminate and set_unexpected with threads,
Guy Harrison <=