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

Side by Side Diff: webrtc/test/channel_transport/udp_socket2_manager_win.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 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 WEBRTC_TRACE(kTraceStateInfo, kTraceTransport, -1, 549 WEBRTC_TRACE(kTraceStateInfo, kTraceTransport, -1,
550 "Stop UdpSocket2WorkerWindows"); 550 "Stop UdpSocket2WorkerWindows");
551 return _pThread->Stop(); 551 return _pThread->Stop();
552 } 552 }
553 553
554 int32_t UdpSocket2WorkerWindows::Init() 554 int32_t UdpSocket2WorkerWindows::Init()
555 { 555 {
556 if(!_init) 556 if(!_init)
557 { 557 {
558 const char* threadName = "UdpSocket2ManagerWindows_thread"; 558 const char* threadName = "UdpSocket2ManagerWindows_thread";
559 _pThread = ThreadWrapper::CreateThread(Run, this, threadName); 559 _pThread = PlatformThread::CreateThread(Run, this, threadName);
560 _init = true; 560 _init = true;
561 } 561 }
562 return 0; 562 return 0;
563 } 563 }
564 564
565 bool UdpSocket2WorkerWindows::Run(void* obj) 565 bool UdpSocket2WorkerWindows::Run(void* obj)
566 { 566 {
567 UdpSocket2WorkerWindows* pWorker = 567 UdpSocket2WorkerWindows* pWorker =
568 static_cast<UdpSocket2WorkerWindows*>(obj); 568 static_cast<UdpSocket2WorkerWindows*>(obj);
569 return pWorker->Process(); 569 return pWorker->Process();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 _workerNumber); 604 _workerNumber);
605 return true; 605 return true;
606 } 606 }
607 pIOContext = (PerIoContext*)pOverlapped; 607 pIOContext = (PerIoContext*)pOverlapped;
608 pSocket->IOCompleted(pIOContext,ioSize,error); 608 pSocket->IOCompleted(pIOContext,ioSize,error);
609 return true; 609 return true;
610 } 610 }
611 611
612 } // namespace test 612 } // namespace test
613 } // namespace webrtc 613 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/channel_transport/udp_socket2_manager_win.h ('k') | webrtc/test/channel_transport/udp_socket2_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698