mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
7fd52a7829
commit
35e6ddd6fe
@ -1438,7 +1438,9 @@ nsHostResolver::ThreadFunc(void *arg)
|
|||||||
LOG(("DNS lookup thread - starting execution.\n"));
|
LOG(("DNS lookup thread - starting execution.\n"));
|
||||||
|
|
||||||
static nsThreadPoolNaming naming;
|
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)
|
#if defined(RES_RETRY_ON_FAILURE)
|
||||||
nsResState rs;
|
nsResState rs;
|
||||||
|
Loading…
Reference in New Issue
Block a user