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
This commit is contained in:
parent
2817d41081
commit
c8bd6f516f
1 changed files with 3 additions and 0 deletions
|
@ -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_ ); \
|
||||
|
|
Loading…
Add table
Reference in a new issue