From e44a064915103ea5fa8e059cb949346cbe1fc51a Mon Sep 17 00:00:00 2001 From: "wu@webrtc.org" Date: Mon, 15 Apr 2013 18:06:42 +0000 Subject: [PATCH] Make win_support_condition_variables_primitive global to aligned with |library| so that once we set it to true it will remain. Review URL: https://webrtc-codereview.appspot.com/1319006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3852 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/system_wrappers/source/condition_variable_native_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/system_wrappers/source/condition_variable_native_win.cc b/webrtc/system_wrappers/source/condition_variable_native_win.cc index 332f3c4bf3..22ddb6f8fd 100644 --- a/webrtc/system_wrappers/source/condition_variable_native_win.cc +++ b/webrtc/system_wrappers/source/condition_variable_native_win.cc @@ -15,6 +15,7 @@ namespace webrtc { static HMODULE library = NULL; +static bool win_support_condition_variables_primitive = false; PInitializeConditionVariable PInitializeConditionVariable_; PSleepConditionVariableCS PSleepConditionVariableCS_; @@ -43,7 +44,6 @@ ConditionVariableWrapper* ConditionVariableNativeWin::Create() { } bool ConditionVariableNativeWin::Init() { - bool win_support_condition_variables_primitive = false; if (!library) { // Native implementation is supported on Vista+. library = LoadLibrary(TEXT("Kernel32.dll"));