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>
#endif
#include "vmware.h"
+#include "vm_basic_asm.h"
#include "str.h"
#include "err.h"
#include "util.h"
GetProcAddress(kernel32,
"WakeConditionVariable");
+ COMPILER_MEM_BARRIER();
+
result = ((pInitializeConditionVariable != NULL) &&
(pSleepConditionVariableCS != NULL) &&
(pWakeAllConditionVariable != NULL) &&
#endif
#include "vmware.h"
+#include "vm_basic_asm.h"
#include "str.h"
#include "util.h"
#include "hashTable.h"
GetProcAddress(kernel32,
"ReleaseSRWLockExclusive");
+ COMPILER_MEM_BARRIER();
+
result = ((pInitializeSRWLock != NULL) &&
(pAcquireSRWLockShared != NULL) &&
(pReleaseSRWLockShared != NULL) &&