Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-23 12:05:07


From: <duncan_at_[hidden]>
> When an exception other than thread_end (or derived) escapes from the
> thread procedure I would strongly prefer it to stop the whole program
> (process). This should be the default behaviour.

The problem with this approach is that resources will leak. When an
exception escapes from main() in the single-threaded case we know that the
stack has been unwound. When an exception escapes from a thread the other
threads' stacks will not be unwound, and the resources they've allocated
will leak.

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk