|
From: <syn...@us...> - 2009-08-16 20:30:16
|
Revision: 1015
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1015&view=rev
Author: syntheticpp
Date: 2009-08-16 20:29:58 +0000 (Sun, 16 Aug 2009)
Log Message:
-----------
fix bug
https://sourceforge.net/tracker/?func=detail&atid=396644&aid=2807089&group_id=29557
Modified Paths:
--------------
trunk/include/loki/Threads.h
Modified: trunk/include/loki/Threads.h
===================================================================
--- trunk/include/loki/Threads.h 2009-04-11 06:02:59 UTC (rev 1014)
+++ trunk/include/loki/Threads.h 2009-08-16 20:29:58 UTC (rev 1015)
@@ -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_ ); \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|