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 <srte@webrtc.org> Reviewed-by: Peter Thatcher <pthatcher@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20644}
This commit is contained in:
parent
ada394b9c0
commit
13f35ec3d7
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user