This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Interleaving pthread_cleanups in C and C++
On 03-May-2003, Mark Mitchell <mark@codesourcery.com> wrote:
> My position is that:
>
> (1) pthread cancellation should be just an ordinary exception -- not
> "forced unwinding". That should be reserved for longjmp_unwind.
>
> (2) Any exception passing through C code should run pthread_cleanup_push
> cleanups.
>
> I think (1) is the clear consensus position among the C++ people who
> have commented.
I'm not sure if I count as a C++ person, but I don't agree with (1).
I'm not sure exactly what you mean by "forced unwinding".
But I think C++ exception handlers should not be allowed to
swallow pthread cancellation exceptions.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.