
25 Sep
2004
25 Sep
'04
12:07 p.m.
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.