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

Re: thread-safety definition



David Abrahams <dave@xxxxxxxxxxxxxxxxxxxx> writes:

> 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.

But fortunately we all seem to be coming to the conclusion that it can
happen at virtually no cost (see Ted B's "static mapping" remark).

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