"Pavel Vasiliev" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> [...]
> In my implementation of refc_ptr operator= performs
> incrementing/decrementing within a single guarded section (since
> the only global instance of interl. op. mutex is used for all
> cases). So the copying via operator= is about twice faster in my
> implementation. I do not know how to achieve this with
> Loki::SmartPtr.
>
> The true locking/unlocking, not InterlockedIncrement/Decrement()
> even if availabe, is necessary to support weak references.
> [...]

Well, this is a good point, and is worthy of study at some point.

Dave



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to