Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(953)

Side by Side Diff: webrtc/system_wrappers/source/condition_variable.cc

Issue 1601523009: Remove ConditionVariableWrapper. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Move include inside guard Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #include "webrtc/system_wrappers/include/condition_variable_wrapper.h"
12
13 // TODO(tommi): Remove completely. As is there is still some code for Windows
14 // that relies on ConditionVariableWrapper, but code has been removed on other
15 // platforms.
16 #if defined(WEBRTC_WIN)
17
18 #include <windows.h>
19 #include "webrtc/system_wrappers/source/condition_variable_event_win.h"
20 #include "webrtc/system_wrappers/source/condition_variable_native_win.h"
21
22 namespace webrtc {
23 ConditionVariableWrapper* ConditionVariableWrapper::CreateConditionVariable() {
24 // Try to create native condition variable implementation.
25 ConditionVariableWrapper* ret_val = ConditionVariableNativeWin::Create();
26 if (!ret_val) {
27 // Native condition variable implementation does not exist. Create generic
28 // condition variable based on events.
29 ret_val = new ConditionVariableEventWin();
30 }
31 return ret_val;
32 }
33 } // namespace webrtc
34
35 #endif // defined(WEBRTC_WIN)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698