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

Side by Side Diff: webrtc/test/channel_transport/udp_socket2_win.h

Issue 1606993002: Remove use of ConditionVariableWrapper and CriticalSectionWrapper from UdpSocket2Windows. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove criticalsection header 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
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET2_WINDOWS_H_ 11 #ifndef WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET2_WINDOWS_H_
12 #define WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET2_WINDOWS_H_ 12 #define WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET2_WINDOWS_H_
13 13
14 // Disable deprication warning from traffic.h 14 // Disable deprication warning from traffic.h
15 #pragma warning(disable : 4995) 15 #pragma warning(disable : 4995)
16 16
17 // Don't change include order for these header files. 17 // Don't change include order for these header files.
18 #include <Winsock2.h> 18 #include <Winsock2.h>
19 #include <Ntddndis.h> 19 #include <Ntddndis.h>
20 #include <traffic.h> 20 #include <traffic.h>
21 21
22 #include "webrtc/base/event.h"
22 #include "webrtc/system_wrappers/include/atomic32.h" 23 #include "webrtc/system_wrappers/include/atomic32.h"
23 #include "webrtc/system_wrappers/include/condition_variable_wrapper.h"
24 #include "webrtc/system_wrappers/include/critical_section_wrapper.h"
25 #include "webrtc/system_wrappers/include/event_wrapper.h" 24 #include "webrtc/system_wrappers/include/event_wrapper.h"
26 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" 25 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h"
27 #include "webrtc/system_wrappers/include/trace.h" 26 #include "webrtc/system_wrappers/include/trace.h"
28 #include "webrtc/test/channel_transport/udp_socket2_manager_win.h" 27 #include "webrtc/test/channel_transport/udp_socket2_manager_win.h"
29 #include "webrtc/test/channel_transport/udp_socket_wrapper.h" 28 #include "webrtc/test/channel_transport/udp_socket_wrapper.h"
30 29
31 namespace webrtc { 30 namespace webrtc {
32 namespace test { 31 namespace test {
33 32
34 class UdpSocket2ManagerWindows; 33 class UdpSocket2ManagerWindows;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 RWLockWrapper* _ptrCbRWLock; 125 RWLockWrapper* _ptrCbRWLock;
127 IncomingSocketCallback _incomingCb; 126 IncomingSocketCallback _incomingCb;
128 CallbackObj _obj; 127 CallbackObj _obj;
129 bool _qos; 128 bool _qos;
130 129
131 SocketAddress _remoteAddr; 130 SocketAddress _remoteAddr;
132 SOCKET _socket; 131 SOCKET _socket;
133 int32_t _iProtocol; 132 int32_t _iProtocol;
134 UdpSocket2ManagerWindows* _mgr; 133 UdpSocket2ManagerWindows* _mgr;
135 134
136 CriticalSectionWrapper* _pCrit;
137 Atomic32 _outstandingCalls; 135 Atomic32 _outstandingCalls;
138 Atomic32 _outstandingCallComplete; 136 Atomic32 _outstandingCallComplete;
139 volatile bool _terminate; 137 volatile bool _terminate;
140 volatile bool _addedToMgr; 138 volatile bool _addedToMgr;
141 139
142 CriticalSectionWrapper* _ptrDeleteCrit; 140 rtc::Event delete_event_;
143 ConditionVariableWrapper* _ptrDeleteCond;
144 bool _safeTodelete; 141 bool _safeTodelete;
145 142
146 RWLockWrapper* _ptrDestRWLock; 143 RWLockWrapper* _ptrDestRWLock;
147 bool _outstandingCallsDisabled; 144 bool _outstandingCallsDisabled;
148 bool NewOutstandingCall(); 145 bool NewOutstandingCall();
149 void OutstandingCallCompleted(); 146 void OutstandingCallCompleted();
150 void DisableNewOutstandingCalls(); 147 void DisableNewOutstandingCalls();
151 void WaitForOutstandingCalls(); 148 void WaitForOutstandingCalls();
152 149
153 void RemoveSocketFromManager(); 150 void RemoveSocketFromManager();
(...skipping 16 matching lines...) Expand all
170 // Holds the current pcp value. Can be -2 or 0 - 7. 167 // Holds the current pcp value. Can be -2 or 0 - 7.
171 int _pcp; 168 int _pcp;
172 169
173 Atomic32 _receiveBuffers; 170 Atomic32 _receiveBuffers;
174 }; 171 };
175 172
176 } // namespace test 173 } // namespace test
177 } // namespace webrtc 174 } // namespace webrtc
178 175
179 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET2_WINDOWS_H_ 176 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET2_WINDOWS_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/test/channel_transport/udp_socket2_win.cc » ('j') | webrtc/test/channel_transport/udp_socket2_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698