|
Boost : |
Subject: Re: [boost] [Thread] Win32 exception handling
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-11-27 16:17:20
David Abrahams <dave_at_[hidden]> writes:
> I talked to an organization a few days ago that wasn't using
> Boost.Thread because of the catch(...) clause in the thread launching
> functions. They wanted the usual Win32 termination behavior (where you
> get a stack backtrace) instead. While that might seem like a silly
> reason not to use Boost.Thread, it's legitimate.
>
> I told them about several ways to work around that issue, but I think
> all of them are more hassle and provide a less useful result (to them)
> than simply letting the exception leak. I wonder if the that would be a
> conforming implementation, whether a call to terminate() is required,
> and whether a preprocessor switch to allow exceptions to leak would be a
> good idea?
I have removed the catch clause on trunk, revision 49969.
Anthony
-- Anthony Williams Author of C++ Concurrency in Action | http://www.manning.com/williams Custom Software Development | http://www.justsoftwaresolutions.co.uk Just Software Solutions Ltd, Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk