From 13f35ec3d7fb8e3212765d8712eb3ee8dc656358 Mon Sep 17 00:00:00 2001 From: Sebastian Jansson Date: Mon, 13 Nov 2017 10:54:45 +0100 Subject: [PATCH] Sets names of peerconnection worker and network thread Bug: None Change-Id: I7117964a013fff2203bf27dd826f0bc6b753f097 Reviewed-on: https://webrtc-review.googlesource.com/20861 Commit-Queue: Sebastian Jansson Reviewed-by: Peter Thatcher Cr-Commit-Position: refs/heads/master@{#20644} --- pc/peerconnectionfactory.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pc/peerconnectionfactory.cc b/pc/peerconnectionfactory.cc index 71b7493815..d9fcce2ae6 100644 --- a/pc/peerconnectionfactory.cc +++ b/pc/peerconnectionfactory.cc @@ -87,12 +87,14 @@ PeerConnectionFactory::PeerConnectionFactory( event_log_factory_(std::move(event_log_factory)) { if (!network_thread_) { owned_network_thread_ = rtc::Thread::CreateWithSocketServer(); + owned_network_thread_->SetName("pc_network_thread", nullptr); owned_network_thread_->Start(); network_thread_ = owned_network_thread_.get(); } if (!worker_thread_) { owned_worker_thread_ = rtc::Thread::Create(); + owned_worker_thread_->SetName("pc_worker_thread", nullptr); owned_worker_thread_->Start(); worker_thread_ = owned_worker_thread_.get(); }