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

Unified 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 unnecessary variable 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/test/channel_transport/udp_socket2_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/channel_transport/udp_socket2_win.h
diff --git a/webrtc/test/channel_transport/udp_socket2_win.h b/webrtc/test/channel_transport/udp_socket2_win.h
index ea37ac47c517d868a073f6e502b3a167ad87c449..b41be9727d2beac302aa38f7dab387e437b41202 100644
--- a/webrtc/test/channel_transport/udp_socket2_win.h
+++ b/webrtc/test/channel_transport/udp_socket2_win.h
@@ -19,9 +19,8 @@
#include <Ntddndis.h>
#include <traffic.h>
+#include "webrtc/base/event.h"
#include "webrtc/system_wrappers/include/atomic32.h"
-#include "webrtc/system_wrappers/include/condition_variable_wrapper.h"
-#include "webrtc/system_wrappers/include/critical_section_wrapper.h"
#include "webrtc/system_wrappers/include/event_wrapper.h"
#include "webrtc/system_wrappers/include/rw_lock_wrapper.h"
#include "webrtc/system_wrappers/include/trace.h"
@@ -133,22 +132,18 @@ private:
int32_t _iProtocol;
UdpSocket2ManagerWindows* _mgr;
- CriticalSectionWrapper* _pCrit;
Atomic32 _outstandingCalls;
Atomic32 _outstandingCallComplete;
volatile bool _terminate;
volatile bool _addedToMgr;
- CriticalSectionWrapper* _ptrDeleteCrit;
- ConditionVariableWrapper* _ptrDeleteCond;
- bool _safeTodelete;
+ rtc::Event delete_event_;
RWLockWrapper* _ptrDestRWLock;
bool _outstandingCallsDisabled;
bool NewOutstandingCall();
void OutstandingCallCompleted();
void DisableNewOutstandingCalls();
- void WaitForOutstandingCalls();
void RemoveSocketFromManager();
« no previous file with comments | « no previous file | webrtc/test/channel_transport/udp_socket2_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698