Boost logo

Boost :

From: williamkempf_at_[hidden]
Date: 2001-08-23 10:15:47


--- In boost_at_y..., "Scott McCaskill" <scott_at_m...> wrote:
> I just remembered another problem that someone else pointed out
when this
> was discussed a while back--using exceptions for thread
cancellation would
> mean that you would have to make sure that you never called any
cancellation
> points (directly or indirectly) from a destructor. That's a much
bigger
> concern--we couldn't even have scoped_lock then, not and also have
robust
> cancellation.

That's why you *MUST* be able to set the cancellation state. In a
destructor that calls a cancellation point you'd need to temporarily
turn cancellation off. (This is one case where it would be nice for
language support to insure this for us. Until then we can do it
manually.)

Bill Kempf


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