From 0ed8a7a091196cbdc8bebb1bfa89fdf9b8802716 Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Sat, 27 Aug 2005 09:21:02 +0000 Subject: [PATCH] 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 --- include/loki/SmartPtr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/loki/SmartPtr.h b/include/loki/SmartPtr.h index 5234aba..4afb6c3 100644 --- a/include/loki/SmartPtr.h +++ b/include/loki/SmartPtr.h @@ -172,7 +172,8 @@ namespace Loki SmallObject::operator new( sizeof(*pCount_))); assert(pCount_); - *pCount_ = 1; + //*pCount_ = 1; + ThreadingModel::AtomicAssign(*pCount_, 1); } RefCountedMT(const RefCountedMT& rhs)