Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-11-02 12:17:49

Alexander Terekhov:

> Anthony Williams wrote:
> [...]
>> N2420 (
>> covers some of the relevant ground --- it's the minutes of the POSIX/C++
>> liaison committee.
> "Gnu gcc and Solaris pthreads: The Gnu gcc and Solaris pthreads
> implementations are two known implementations that attempt to map
> POSIX pthread cancellation onto C++ exception handling, but both
> do so at the cost of breaking the exception model (i.e., they no
> longer conform to ISO C++) because the alternative appears to be
> that C++ destructors and catch blocks would not be invoked for
> cancellation which would mean that resources would be leaked."
> Uhmm. Don't know about (modern) Solaris, but glibc (presumably
> that is meant by "Gnu gcc pthreads implementation") does invoke
> C++ destructors and catch blocks.

Solaris invokes destructors and does not invoke catch blocks (not because
they can't, but because they've decided not to.)

Boost list run by bdawes at, gregod at, cpdaniel at, john at