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
This commit is contained in:
parent
92d1f07551
commit
e44a064915
@ -15,6 +15,7 @@
|
|||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
static HMODULE library = NULL;
|
static HMODULE library = NULL;
|
||||||
|
static bool win_support_condition_variables_primitive = false;
|
||||||
|
|
||||||
PInitializeConditionVariable PInitializeConditionVariable_;
|
PInitializeConditionVariable PInitializeConditionVariable_;
|
||||||
PSleepConditionVariableCS PSleepConditionVariableCS_;
|
PSleepConditionVariableCS PSleepConditionVariableCS_;
|
||||||
@ -43,7 +44,6 @@ ConditionVariableWrapper* ConditionVariableNativeWin::Create() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ConditionVariableNativeWin::Init() {
|
bool ConditionVariableNativeWin::Init() {
|
||||||
bool win_support_condition_variables_primitive = false;
|
|
||||||
if (!library) {
|
if (!library) {
|
||||||
// Native implementation is supported on Vista+.
|
// Native implementation is supported on Vista+.
|
||||||
library = LoadLibrary(TEXT("Kernel32.dll"));
|
library = LoadLibrary(TEXT("Kernel32.dll"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user