OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |