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
> points (directly or indirectly) from a destructor. That's a much
> concern--we couldn't even have scoped_lock then, not and also have
> 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

Bill Kempf

Boost list run by bdawes at, gregod at, cpdaniel at, john at