Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2004-09-25 07:07:20


John Torjo wrote:
[...]
> // here - you need InterlockedCompareExchange
> // to realize that refcount is 0 (zero)
> shared_ptr<test> p3 = weak.lock();

lock() calls InterlockedCompareExchange (too bad it's fully fenced)
if refcount isn't 0. Again, it can't see "false" zero.

regards,
alexander.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk