]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Well if you're going to do that...
authorVMware, Inc <>
Mon, 26 Jul 2010 19:11:01 +0000 (12:11 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 19:11:01 +0000 (12:11 -0700)
COMPILER_MEM_BARRIERS were added for lib/file. lib/lock
should get them for the same reasons...

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/lock/ulCondVar.c
open-vm-tools/lib/lock/ulRW.c

index 2a957c84dae5774e9097bf9545272bbad7245440..c28a3168cacf88f5123429d8a37c90e3c791b775 100644 (file)
@@ -23,6 +23,7 @@
 #endif
 
 #include "vmware.h"
+#include "vm_basic_asm.h"
 #include "str.h"
 #include "err.h"
 #include "util.h"
@@ -114,6 +115,8 @@ MXUserNativeCVSupported(void)
                                    GetProcAddress(kernel32,
                                                    "WakeConditionVariable");
 
+         COMPILER_MEM_BARRIER();
+
          result = ((pInitializeConditionVariable != NULL) &&
                    (pSleepConditionVariableCS != NULL) &&
                    (pWakeAllConditionVariable != NULL) &&
index c9f5b7f02c8f8625ab5964aa5332265d9076b97d..7fe24109e3cd14d8745ec23169171ffbcdb2a451 100644 (file)
@@ -21,6 +21,7 @@
 #endif
 
 #include "vmware.h"
+#include "vm_basic_asm.h"
 #include "str.h"
 #include "util.h"
 #include "hashTable.h"
@@ -88,6 +89,8 @@ MXUserNativeRWSupported(void)
                                     GetProcAddress(kernel32,
                                                    "ReleaseSRWLockExclusive");
 
+         COMPILER_MEM_BARRIER();
+
          result = ((pInitializeSRWLock != NULL) &&
                    (pAcquireSRWLockShared != NULL) &&
                    (pReleaseSRWLockShared != NULL) &&