Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj

This commit is contained in:
Kyle Huey
2016-05-05 01:45:00 -07:00
parent 7bfda7e22f
commit b972c94d0f
238 changed files with 1046 additions and 1279 deletions

View File

@@ -146,9 +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.
nsCOMPtr<nsIRunnable> r = NS_NewRunnableMethod(aThread,
&nsIThread::AsyncShutdown);
NS_DispatchToMainThread(r);
NS_DispatchToMainThread(NewRunnableMethod(aThread,
&nsIThread::AsyncShutdown));
}
NS_IMETHODIMP