by "Peter Dimov" <pdimov@[EMAIL PROTECTED]
>
Apr 2, 2005 at 05:43 PM
Alexander Terekhov wrote:
> bool lock() throw() {
> return use_count_.increment_if_not_min(); // ****d
> }
msync::****d_competing, IIUC? Is cmpxchg on x86 a proper implementation of
****d_competing, or does it need a lock prefix? And if lockless cmpxchg is
fine,
> void add_ref() throw() {
> use_count_.increment(); // ****d
> }
should this use cmpxchg too instead of lock inc/lock xadd?