Bug 1323100 - Use nsThreadPoolNaming::GetNextThreadName for the DNS resolver thread. r=froydnj

MozReview-Commit-ID: EQvKoIIorKG

--HG--
extra : rebase_source : 613b402292e81e6fa4c8ea404a14f71a893f08a6
This commit is contained in:
Markus Stange 2016-12-20 14:21:34 +01:00
parent 7fd52a7829
commit 35e6ddd6fe

View File

@ -1438,7 +1438,9 @@ nsHostResolver::ThreadFunc(void *arg)
LOG(("DNS lookup thread - starting execution.\n"));
static nsThreadPoolNaming naming;
naming.SetThreadPoolName(NS_LITERAL_CSTRING("DNS Resolver"));
nsCString name = naming.GetNextThreadName("DNS Resolver");
PR_SetCurrentThreadName(name.BeginReading());
#if defined(RES_RETRY_ON_FAILURE)
nsResState rs;