mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 1362945 - Label runnables in dom/file/ipc, r=btseng
This commit is contained in:
parent
cb4caa5dfa
commit
07a1540ec8
@ -7,6 +7,8 @@
|
||||
#include "IPCBlobInputStreamThread.h"
|
||||
|
||||
#include "mozilla/StaticMutex.h"
|
||||
#include "mozilla/SystemGroup.h"
|
||||
#include "mozilla/TaskCategory.h"
|
||||
#include "mozilla/ipc/BackgroundChild.h"
|
||||
#include "mozilla/ipc/PBackgroundChild.h"
|
||||
#include "nsIIPCBackgroundChildCreateCallback.h"
|
||||
@ -120,7 +122,10 @@ void
|
||||
IPCBlobInputStreamThread::Initialize()
|
||||
{
|
||||
if (!NS_IsMainThread()) {
|
||||
NS_DispatchToMainThread(new ThreadInitializeRunnable());
|
||||
RefPtr<Runnable> runnable = new ThreadInitializeRunnable();
|
||||
SystemGroup::Dispatch("IPCBlobInputStreamThread::Initialize",
|
||||
TaskCategory::Other,
|
||||
runnable.forget());
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user