Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-03-27 14:09:31


on Tue Mar 27 2007, Roland Schwarz <roland.schwarz-AT-chello.at> wrote:

> David Abrahams wrote:
>> I suggest that trying to use meanings of "cancellation" other than the
>> one(s) used in the pthread standard at this point can only confuse
>> things, which hardly seems like a way to un-stall the process.
>
> I might be completely wrong, but doesn't the pthread standard
> require a thread to stop once it has been cancelled?
> The thread may decide to defer the request, but not to deny.

It can deny the request by never invoking a cancellation point. It
can also deny the request by putting an infinite loop (perhaps one
that does what the thread would have been doing anyway) in one of its
cancellation handlers.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk