Bug 1190496 - Hoist SharedThreadPool into xpcom. r=froydnj
authorBobby Holley <bobbyholley@gmail.com>
Mon, 03 Aug 2015 14:37:23 -0700
changeset 256219 e90476303f406b58daa6d5eb35edf7e5b85ccb22
parent 256218 961b1b2229d4f8fd5ae1a397ec1b6beb2542b45b
child 256220 69f15a2039fdac999ae3aa90a8c2181ad7bdba90
push id29171
push usercbook@mozilla.com
push dateWed, 05 Aug 2015 11:13:29 +0000
treeherdermozilla-central@b12a261ee32e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1190496
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1190496 - Hoist SharedThreadPool into xpcom. r=froydnj
dom/media/SharedThreadPool.cpp
dom/media/SharedThreadPool.h
dom/media/moz.build
xpcom/threads/SharedThreadPool.cpp
xpcom/threads/SharedThreadPool.h
xpcom/threads/moz.build
--- a/dom/media/moz.build
+++ b/dom/media/moz.build
@@ -147,17 +147,16 @@ EXPORTS += [
     'VideoUtils.h',
     'VorbisUtils.h',
 ]
 
 EXPORTS.mozilla += [
     'AbstractThread.h',
     'MediaManager.h',
     'MozPromise.h',
-    'SharedThreadPool.h',
     'StateMirroring.h',
     'StateWatching.h',
     'TaskDispatcher.h',
     'TaskQueue.h',
 ]
 
 EXPORTS.mozilla.media.webrtc += [
     'webrtc/WebrtcGlobal.h',
@@ -230,17 +229,16 @@ UNIFIED_SOURCES += [
     'MediaStreamTrack.cpp',
     'MediaTimer.cpp',
     'MediaTrack.cpp',
     'MediaTrackList.cpp',
     'MP3Decoder.cpp',
     'MP3Demuxer.cpp',
     'MP3FrameParser.cpp',
     'RtspMediaResource.cpp',
-    'SharedThreadPool.cpp',
     'StreamBuffer.cpp',
     'TaskQueue.cpp',
     'TextTrack.cpp',
     'TextTrackCue.cpp',
     'TextTrackCueList.cpp',
     'TextTrackList.cpp',
     'TextTrackRegion.cpp',
     'TrackUnionStream.cpp',
rename from dom/media/SharedThreadPool.cpp
rename to xpcom/threads/SharedThreadPool.cpp
rename from dom/media/SharedThreadPool.h
rename to xpcom/threads/SharedThreadPool.h
--- a/xpcom/threads/moz.build
+++ b/xpcom/threads/moz.build
@@ -27,32 +27,34 @@ EXPORTS += [
     'nsThread.h',
 ]
 
 EXPORTS.mozilla += [
     'BackgroundHangMonitor.h',
     'HangAnnotations.h',
     'HangMonitor.h',
     'LazyIdleThread.h',
+    'SharedThreadPool.h',
     'SyncRunnable.h',
 ]
 
 UNIFIED_SOURCES += [
     'BackgroundHangMonitor.cpp',
     'HangAnnotations.cpp',
     'HangMonitor.cpp',
     'LazyIdleThread.cpp',
     'nsEnvironment.cpp',
     'nsEventQueue.cpp',
     'nsMemoryPressure.cpp',
     'nsProcessCommon.cpp',
     'nsThread.cpp',
     'nsThreadManager.cpp',
     'nsThreadPool.cpp',
     'nsTimerImpl.cpp',
+    'SharedThreadPool.cpp',
     'ThreadStackHelper.cpp',
     'TimerThread.cpp',
 ]
 
 LOCAL_INCLUDES += [
     '../build',
     '/caps',
     '/toolkit/crashreporter/google-breakpad/src',