зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1376858 - Use SystemGroup to label nsIThread::AsyncShutdown, r=billm
MozReview-Commit-ID: IDPE6zhEnVI --HG-- extra : rebase_source : c6c47ba59dc983ba0747f4a222a88e9fbac3efb2
This commit is contained in:
Родитель
6a8d4baed7
Коммит
b24a6c913e
|
@ -146,8 +146,8 @@ nsThreadPool::ShutdownThread(nsIThread* aThread)
|
|||
// shutdown requires this thread have an event loop (and it may not, see bug
|
||||
// 10204784). The simplest way to cover all cases is to asynchronously
|
||||
// shutdown aThread from the main thread.
|
||||
NS_DispatchToMainThread(NewRunnableMethod("nsIThread::AsyncShutdown", aThread,
|
||||
&nsIThread::AsyncShutdown));
|
||||
SystemGroup::Dispatch(TaskCategory::Other, NewRunnableMethod(
|
||||
"nsIThread::AsyncShutdown", aThread, &nsIThread::AsyncShutdown));
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче