[c++-pthreads] Re: thread-safety definition

Ted Baker baker at cs.fsu.edu
Mon Jan 12 11:40:14 UTC 2004


> The problem is that cleanup -- e.g. execution of C++ destructors on
> stack unwinding -- may involve calls to I/O routines that are themselves
> cancellation points.  If these routines fail, then the cleanup functions
> will not achieve their intended purpose; they will not be able to release
> the resources that the thread holds.  Nathan's model implies that they
> will fail.

This cannot happen if cancellation is automagically disabled during
execution of (all) destructors, along with the stack unwinding code
that is performed during exception processing.

--Ted



More information about the c++-pthreads mailing list