------- Comment #17 from jason at redhat dot com 2007-04-15 19:01 -------
Subject: Re: C++ (throw() and catch(...) {/* fall through
*/ } ) and pthread cancellation are incompatible (at least with NPTL)
hhinnant at apple dot com wrote:
> This makes clean up / rethrow during cancellation awkward. Code would have to
> check for two (or more) different kinds of cancellation: Am I executing in an
> OS thread, or in a thread pool?
Well, yes. The mechanism for pthread_cancel won't necessarily work with
other forms of cancellation.
Doing clean up in a catch(...) block has always been inelegant, a
destructor will be more reliable. I don't understand why we aren't
adding finally in this round of standardization...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28145