Cleanup: Replace MessageQueue pointers with Thread pointers.

This is part of a CL series merging rtc::MessageQueue into rtc::Thread.

Bug: webrtc:9883
Change-Id: I4a1bcd44c9523b6402b3f05b50597bdc2e6615e3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/165345
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30216}
This commit is contained in:
Sebastian Jansson
2020-01-09 14:20:23 +01:00
parent ec648f50ca
commit 290de82b2a
15 changed files with 26 additions and 30 deletions

View File

@ -18,7 +18,6 @@
#include "examples/peerconnection/client/flag_defs.h"
#include "examples/peerconnection/client/linux/main_wnd.h"
#include "examples/peerconnection/client/peer_connection_client.h"
#include "rtc_base/message_queue.h"
#include "rtc_base/physical_socket_server.h"
#include "rtc_base/ref_counted_object.h"
#include "rtc_base/ssl_adapter.h"
@ -32,9 +31,7 @@ class CustomSocketServer : public rtc::PhysicalSocketServer {
: wnd_(wnd), conductor_(NULL), client_(NULL) {}
virtual ~CustomSocketServer() {}
void SetMessageQueue(rtc::MessageQueue* queue) override {
message_queue_ = queue;
}
void SetMessageQueue(rtc::Thread* queue) override { message_queue_ = queue; }
void set_client(PeerConnectionClient* client) { client_ = client; }
void set_conductor(Conductor* conductor) { conductor_ = conductor; }
@ -58,7 +55,7 @@ class CustomSocketServer : public rtc::PhysicalSocketServer {
}
protected:
rtc::MessageQueue* message_queue_;
rtc::Thread* message_queue_;
GtkMainWnd* wnd_;
Conductor* conductor_;
PeerConnectionClient* client_;