Bug 1362945 - Label runnables in dom/file/ipc, r=btseng

This commit is contained in:
Andrea Marchesini 2017-06-22 11:05:56 +02:00
Родитель cb4caa5dfa
Коммит 07a1540ec8
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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;
}