Re: [c++-pthreads] Re: thread-safety definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [c++-pthreads] Re: thread-safety definition
- To: Fergus Henderson <fjh@xxxxxxxxxxx>
- Subject: Re: [c++-pthreads] Re: thread-safety definition
- From: Ted Baker <baker@xxxxxxxxxx>
- Date: Mon, 12 Jan 2004 06:40:14 -0500
> 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