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

Side by Side Diff: webrtc/test/channel_transport/udp_socket_manager_posix.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) 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual bool RemoveSocket(UdpSocketWrapper* s); 68 virtual bool RemoveSocket(UdpSocketWrapper* s);
69 69
70 protected: 70 protected:
71 static bool Run(void* obj); 71 static bool Run(void* obj);
72 bool Process(); 72 bool Process();
73 void UpdateSocketMap(); 73 void UpdateSocketMap();
74 74
75 private: 75 private:
76 typedef std::list<UdpSocketWrapper*> SocketList; 76 typedef std::list<UdpSocketWrapper*> SocketList;
77 typedef std::list<SOCKET> FdList; 77 typedef std::list<SOCKET> FdList;
78 rtc::scoped_ptr<PlatformThread> _thread; 78 rtc::PlatformThread _thread;
79 CriticalSectionWrapper* _critSectList; 79 CriticalSectionWrapper* _critSectList;
80 80
81 fd_set _readFds; 81 fd_set _readFds;
82 82
83 std::map<SOCKET, UdpSocketPosix*> _socketMap; 83 std::map<SOCKET, UdpSocketPosix*> _socketMap;
84 SocketList _addList; 84 SocketList _addList;
85 FdList _removeList; 85 FdList _removeList;
86 }; 86 };
87 87
88 } // namespace test 88 } // namespace test
89 } // namespace webrtc 89 } // namespace webrtc
90 90
91 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET_MANAGER_POSIX_H_ 91 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET_MANAGER_POSIX_H_
OLDNEW
« no previous file with comments | « webrtc/test/channel_transport/udp_socket2_manager_win.cc ('k') | webrtc/test/channel_transport/udp_socket_manager_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698