Re: thread-safety definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thread-safety definition



Ted Baker <baker@xxxxxxxxxx> writes:

> Yes, but it need not be a *huge* amount of cycles.  Protection
> against cancellation can be done via the equivalent of setting one
> bit in a thread descriptor

Setting one bit per nontrivial destructor call would be a performance
disaster for many programs.

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