Mark construction time members of PhysicalSocketServer as const
Bug: webrtc:11567 Change-Id: I06d48aa1636ce1dc684e6a1f6332366be9df22d0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175007 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31242}
This commit is contained in:
@ -117,7 +117,7 @@ class RTC_EXPORT PhysicalSocketServer : public SocketServer {
|
||||
bool WaitEpoll(int cms);
|
||||
bool WaitPoll(int cms, Dispatcher* dispatcher);
|
||||
|
||||
int epoll_fd_ = INVALID_SOCKET;
|
||||
const int epoll_fd_ = INVALID_SOCKET;
|
||||
std::vector<struct epoll_event> epoll_events_;
|
||||
#endif // WEBRTC_USE_EPOLL
|
||||
DispatcherSet dispatchers_;
|
||||
@ -126,10 +126,10 @@ class RTC_EXPORT PhysicalSocketServer : public SocketServer {
|
||||
bool processing_dispatchers_ = false;
|
||||
Signaler* signal_wakeup_;
|
||||
CriticalSection crit_;
|
||||
bool fWait_;
|
||||
#if defined(WEBRTC_WIN)
|
||||
WSAEVENT socket_ev_;
|
||||
const WSAEVENT socket_ev_;
|
||||
#endif
|
||||
bool fWait_;
|
||||
};
|
||||
|
||||
class PhysicalSocket : public AsyncSocket, public sigslot::has_slots<> {
|
||||
|
Reference in New Issue
Block a user