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

Side by Side Diff: webrtc/test/channel_transport/udp_socket_manager_posix.cc

Issue 1469013002: Move ThreadWrapper to ProcessThread in base. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: removed comment Created 5 years, 1 month 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 _numberOfSocketMgr); 181 _numberOfSocketMgr);
182 } 182 }
183 _critSect->Leave(); 183 _critSect->Leave();
184 return retVal; 184 return retVal;
185 } 185 }
186 186
187 187
188 UdpSocketManagerPosixImpl::UdpSocketManagerPosixImpl() 188 UdpSocketManagerPosixImpl::UdpSocketManagerPosixImpl()
189 { 189 {
190 _critSectList = CriticalSectionWrapper::CreateCriticalSection(); 190 _critSectList = CriticalSectionWrapper::CreateCriticalSection();
191 _thread = ThreadWrapper::CreateThread(UdpSocketManagerPosixImpl::Run, this, 191 _thread = PlatformThread::CreateThread(UdpSocketManagerPosixImpl::Run, this,
192 "UdpSocketManagerPosixImplThread"); 192 "UdpSocketManagerPosixImplThread");
193 FD_ZERO(&_readFds); 193 FD_ZERO(&_readFds);
194 WEBRTC_TRACE(kTraceMemory, kTraceTransport, -1, 194 WEBRTC_TRACE(kTraceMemory, kTraceTransport, -1,
195 "UdpSocketManagerPosix created"); 195 "UdpSocketManagerPosix created");
196 } 196 }
197 197
198 UdpSocketManagerPosixImpl::~UdpSocketManagerPosixImpl() 198 UdpSocketManagerPosixImpl::~UdpSocketManagerPosixImpl()
199 { 199 {
200 if (_critSectList != NULL) 200 if (_critSectList != NULL)
201 { 201 {
202 UpdateSocketMap(); 202 UpdateSocketMap();
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 if(s) { 394 if(s) {
395 _socketMap[s->GetFd()] = s; 395 _socketMap[s->GetFd()] = s;
396 } 396 }
397 } 397 }
398 _addList.clear(); 398 _addList.clear();
399 _critSectList->Leave(); 399 _critSectList->Leave();
400 } 400 }
401 401
402 } // namespace test 402 } // namespace test
403 } // namespace webrtc 403 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/channel_transport/udp_socket_manager_posix.h ('k') | webrtc/test/direct_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698