fix bug[ 446592 ] SmartPtr an threading (RefCountedMT)

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@212 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2005-08-27 09:21:02 +00:00
parent 18884e392f
commit 0ed8a7a091

View file

@ -172,7 +172,8 @@ namespace Loki
SmallObject<ThreadingModel>::operator new( SmallObject<ThreadingModel>::operator new(
sizeof(*pCount_))); sizeof(*pCount_)));
assert(pCount_); assert(pCount_);
*pCount_ = 1; //*pCount_ = 1;
ThreadingModel<RefCountedMT>::AtomicAssign(*pCount_, 1);
} }
RefCountedMT(const RefCountedMT& rhs) RefCountedMT(const RefCountedMT& rhs)