Bug 1323100 - Remove nsThreadPoolNaming::SetThreadPoolName because it's now unused. r=froydnj

MozReview-Commit-ID: CYgF2NGD6pt

--HG--
extra : rebase_source : cc09c212670d845c00629903b477674806618699
extra : source : 1cd63b3998c4a4c2ef5c59eee24bd344b2d3bc6d
This commit is contained in:
Markus Stange 2016-12-19 16:16:50 +01:00
parent 34233ed327
commit e05e8b4648
2 changed files with 0 additions and 25 deletions

View File

@ -448,23 +448,6 @@ nsThreadPoolNaming::GetNextThreadName(const nsACString& aPoolName)
name.AppendInt(++mCounter, 10); // The counter is declared as atomic
return name;
}
void
nsThreadPoolNaming::SetThreadPoolName(const nsACString& aPoolName,
nsIThread* aThread)
{
nsCString name = GetNextThreadName(aPoolName);
if (aThread) {
// Set on the target thread
NS_SetThreadName(aThread, name);
} else {
// Set on the current thread
#ifndef XPCOM_GLUE_AVOID_NSPR
PR_SetCurrentThreadName(name.BeginReading());
#endif
}
}
// nsAutoLowPriorityIO
nsAutoLowPriorityIO::nsAutoLowPriorityIO()

View File

@ -1048,14 +1048,6 @@ public:
return GetNextThreadName(nsDependentCString(aPoolName, LEN - 1));
}
/**
* Creates and sets next thread name as "<aPoolName> #<n>"
* on the specified thread. If no thread is specified (aThread
* is null) then the name is synchronously set on the current thread.
*/
void SetThreadPoolName(const nsACString& aPoolName,
nsIThread* aThread = nullptr);
private:
mozilla::Atomic<uint32_t> mCounter;