From c8bd6f516f6c2c1aa47e9181156f4bea848a330f Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Sun, 16 Aug 2009 20:29:58 +0000 Subject: [PATCH] fix bug https://sourceforge.net/tracker/?func=detail&atid=396644&aid=2807089&group_id=29557 git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1015 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/Threads.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/loki/Threads.h b/include/loki/Threads.h index 196b983..b376eef 100644 --- a/include/loki/Threads.h +++ b/include/loki/Threads.h @@ -92,6 +92,9 @@ #define LOKI_THREADS_MUTEX_CTOR(x) #define LOKI_THREADS_ATOMIC_FUNCTIONS \ + private: \ + static CRITICAL_SECTION atomic_mutex_; \ + public: \ static IntType AtomicMultiply(volatile IntType& lval, const IntType val) \ { \ ::EnterCriticalSection( &atomic_mutex_ ); \