From 8a793a0b1bf926d825888003ed94ae805a737968 Mon Sep 17 00:00:00 2001 From: Sebastian Jansson Date: Tue, 13 Mar 2018 15:21:48 +0100 Subject: [PATCH] Named threads in PeerConnectionIntegrationBaseTest. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes it easier to follow threads during debugging. Bug: None Change-Id: I88e68521e354224052500bc47f2300253b95a892 Reviewed-on: https://webrtc-review.googlesource.com/61429 Reviewed-by: Henrik Boström Commit-Queue: Sebastian Jansson Cr-Commit-Position: refs/heads/master@{#22405} --- pc/peerconnection_integrationtest.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pc/peerconnection_integrationtest.cc b/pc/peerconnection_integrationtest.cc index 32ebd5e75b..ec53298d22 100644 --- a/pc/peerconnection_integrationtest.cc +++ b/pc/peerconnection_integrationtest.cc @@ -1087,6 +1087,8 @@ class PeerConnectionIntegrationBaseTest : public testing::Test { fss_(new rtc::FirewallSocketServer(ss_.get())), network_thread_(new rtc::Thread(fss_.get())), worker_thread_(rtc::Thread::Create()) { + network_thread_->SetName("PCNetworkThread", this); + worker_thread_->SetName("PCWorkerThread", this); RTC_CHECK(network_thread_->Start()); RTC_CHECK(worker_thread_->Start()); }