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

Side by Side Diff: webrtc/system_wrappers/include/condition_variable_wrapper.h

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 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_CONDITION_VARIABLE_WRAPPER_H_
12 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_CONDITION_VARIABLE_WRAPPER_H_
13
14 // TODO(tommi): Remove completely. As is there is still some code for Windows
15 // that relies on ConditionVariableWrapper, but code has been removed on other
16 // platforms.
17 #if defined(WEBRTC_WIN)
18
19 namespace webrtc {
20
21 class CriticalSectionWrapper;
22
23 class ConditionVariableWrapper {
24 public:
25 // Factory method, constructor disabled.
26 static ConditionVariableWrapper* CreateConditionVariable();
27
28 virtual ~ConditionVariableWrapper() {}
29
30 // Calling thread will atomically release crit_sect and wait until next
31 // some other thread calls Wake() or WakeAll().
32 virtual void SleepCS(CriticalSectionWrapper& crit_sect) = 0;
33
34 // Same as above but with a timeout.
35 virtual bool SleepCS(CriticalSectionWrapper& crit_sect,
36 unsigned long max_time_in_ms) = 0;
37
38 // Wakes one thread calling SleepCS().
39 virtual void Wake() = 0;
40
41 // Wakes all threads calling SleepCS().
42 virtual void WakeAll() = 0;
43 };
44
45 } // namespace webrtc
46
47 #endif // defined(WEBRTC_WIN)
48
49 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_CONDITION_VARIABLE_WRAPPER_H_
OLDNEW
« no previous file with comments | « webrtc/system_wrappers/BUILD.gn ('k') | webrtc/system_wrappers/include/critical_section_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698