mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
34233ed327
commit
e05e8b4648
@ -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()
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user