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