Re: [c++-pthreads] Re: cancellation points report failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [c++-pthreads] Re: cancellation points report failure



On 07-Jan-2004, Alexander Terekhov <boo@xxxxxxxxxxx> wrote:
> Nathan Myers wrote:
> > 
> > On Tue, Jan 06, 2004 at 06:58:57AM -0500, Dave Butenhof wrote:
> > > Personally, I would be happy to accept a C++ binding with no way to
> > > enable asynchronous cancelability, and to avoid defining any C++ code
> > > as "async cancel-safe".
> > 
> > I think we're all agreed on that.  This list is about semantics of
> > a C++ binding for synchronous cancellation.
> 
> Objection. To begin with, asynchronous cancelability IS part of 
> pthreads.

Asynchronous cancelability only works if you can be sure that there
are no implicit calls to async-cancel-unsafe functions going on.
That's not too hard to ensure in C, but it's a lot more difficult
in C++.

-- 
Fergus Henderson <fjh@xxxxxxxxxxx>  |  "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.