зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1190492 - Init AbstractThread statics from XPCOM. r=froydnj
This commit is contained in:
Родитель
2154e87d12
Коммит
a6c9a6255e
|
@ -129,7 +129,6 @@ void
|
|||
MediaDecoder::InitStatics()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
AbstractThread::InitStatics();
|
||||
|
||||
// Log modules.
|
||||
gMediaDecoderLog = PR_NewLogModule("MediaDecoder");
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "base/basictypes.h"
|
||||
|
||||
#include "mozilla/AbstractThread.h"
|
||||
#include "mozilla/Atomics.h"
|
||||
#include "mozilla/Poison.h"
|
||||
#include "mozilla/SharedThreadPool.h"
|
||||
|
@ -718,6 +719,9 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
|
|||
// Init SharedThreadPool (which needs the service manager).
|
||||
SharedThreadPool::InitStatics();
|
||||
|
||||
// Init AbstractThread.
|
||||
AbstractThread::InitStatics();
|
||||
|
||||
// Force layout to spin up so that nsContentUtils is available for cx stack
|
||||
// munging.
|
||||
nsCOMPtr<nsISupports> componentLoader =
|
||||
|
|
Загрузка…
Ссылка в новой задаче