forked from mirrors/gecko-dev
Bug 1553856: LazyIdleThread should set names for the nsThreads it spawns r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D32385 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
cd062bb5d7
commit
a859c53225
1 changed files with 2 additions and 2 deletions
|
|
@ -151,7 +151,7 @@ nsresult LazyIdleThread::EnsureThread() {
|
|||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
||||
rv = NS_NewNamedThread("Lazy Idle", getter_AddRefs(mThread), runnable);
|
||||
rv = NS_NewNamedThread(mName, getter_AddRefs(mThread), runnable);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
|
|
@ -523,7 +523,7 @@ LazyIdleThread::Notify(nsITimer* aTimer) {
|
|||
|
||||
NS_IMETHODIMP
|
||||
LazyIdleThread::GetName(nsACString& aName) {
|
||||
aName.AssignLiteral("LazyIdleThread");
|
||||
aName.Assign(mName);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue