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

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

Issue 1476453002: Clean up PlatformThread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IsRunning DCHECK Created 5 years 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
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual ~UdpSocket2WorkerWindows(); 98 virtual ~UdpSocket2WorkerWindows();
99 99
100 virtual bool Start(); 100 virtual bool Start();
101 virtual bool Stop(); 101 virtual bool Stop();
102 virtual int32_t Init(); 102 virtual int32_t Init();
103 protected: 103 protected:
104 static bool Run(void* obj); 104 static bool Run(void* obj);
105 bool Process(); 105 bool Process();
106 private: 106 private:
107 HANDLE _ioCompletionHandle; 107 HANDLE _ioCompletionHandle;
108 rtc::scoped_ptr<PlatformThread> _pThread; 108 rtc::PlatformThread _pThread;
109 static int32_t _numOfWorkers; 109 static int32_t _numOfWorkers;
110 int32_t _workerNumber; 110 int32_t _workerNumber;
111 volatile bool _stop; 111 volatile bool _stop;
112 bool _init; 112 bool _init;
113 }; 113 };
114 114
115 class UdpSocket2ManagerWindows : public UdpSocketManager 115 class UdpSocket2ManagerWindows : public UdpSocketManager
116 { 116 {
117 public: 117 public:
118 UdpSocket2ManagerWindows(); 118 UdpSocket2ManagerWindows();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 EventWrapper* _event; 153 EventWrapper* _event;
154 154
155 HANDLE _ioCompletionHandle; 155 HANDLE _ioCompletionHandle;
156 IoContextPool _ioContextPool; 156 IoContextPool _ioContextPool;
157 }; 157 };
158 158
159 } // namespace test 159 } // namespace test
160 } // namespace webrtc 160 } // namespace webrtc
161 161
162 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET2_MANAGER_WINDOWS_H_ 162 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET2_MANAGER_WINDOWS_H_
OLDNEW
« no previous file with comments | « webrtc/system_wrappers/source/event_timer_posix.cc ('k') | webrtc/test/channel_transport/udp_socket2_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698