From b5a26b0b15201e86d72d109442366ea898b79481 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Mon, 3 Aug 2015 14:37:23 -0700 Subject: [PATCH] Bug 1190496 - Hoist SharedThreadPool into xpcom. r=froydnj --HG-- rename : dom/media/SharedThreadPool.cpp => xpcom/threads/SharedThreadPool.cpp rename : dom/media/SharedThreadPool.h => xpcom/threads/SharedThreadPool.h --- dom/media/moz.build | 2 -- {dom/media => xpcom/threads}/SharedThreadPool.cpp | 0 {dom/media => xpcom/threads}/SharedThreadPool.h | 0 xpcom/threads/moz.build | 2 ++ 4 files changed, 2 insertions(+), 2 deletions(-) rename {dom/media => xpcom/threads}/SharedThreadPool.cpp (100%) rename {dom/media => xpcom/threads}/SharedThreadPool.h (100%) diff --git a/dom/media/moz.build b/dom/media/moz.build index 91356b008619..a13fb3dc2e8a 100644 --- a/dom/media/moz.build +++ b/dom/media/moz.build @@ -152,7 +152,6 @@ EXPORTS.mozilla += [ 'AbstractThread.h', 'MediaManager.h', 'MozPromise.h', - 'SharedThreadPool.h', 'StateMirroring.h', 'StateWatching.h', 'TaskDispatcher.h', @@ -235,7 +234,6 @@ UNIFIED_SOURCES += [ 'MP3Demuxer.cpp', 'MP3FrameParser.cpp', 'RtspMediaResource.cpp', - 'SharedThreadPool.cpp', 'StreamBuffer.cpp', 'TaskQueue.cpp', 'TextTrack.cpp', diff --git a/dom/media/SharedThreadPool.cpp b/xpcom/threads/SharedThreadPool.cpp similarity index 100% rename from dom/media/SharedThreadPool.cpp rename to xpcom/threads/SharedThreadPool.cpp diff --git a/dom/media/SharedThreadPool.h b/xpcom/threads/SharedThreadPool.h similarity index 100% rename from dom/media/SharedThreadPool.h rename to xpcom/threads/SharedThreadPool.h diff --git a/xpcom/threads/moz.build b/xpcom/threads/moz.build index dd3289bd0c33..b6e67a6784f5 100644 --- a/xpcom/threads/moz.build +++ b/xpcom/threads/moz.build @@ -32,6 +32,7 @@ EXPORTS.mozilla += [ 'HangAnnotations.h', 'HangMonitor.h', 'LazyIdleThread.h', + 'SharedThreadPool.h', 'SyncRunnable.h', ] @@ -48,6 +49,7 @@ UNIFIED_SOURCES += [ 'nsThreadManager.cpp', 'nsThreadPool.cpp', 'nsTimerImpl.cpp', + 'SharedThreadPool.cpp', 'ThreadStackHelper.cpp', 'TimerThread.cpp', ]