gecko-dev/xpcom/threads
Gerald Squelart 25992688b7 Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder - r=jwwang
MozPromise::All sets up 'Then' lambdas on all sub-promises, each one taking the
resolve/reject object by value.
Since this value will not be used again in the lambda, it is safe to Move it,
and from there MozPromiseHolder::Resolve/Reject can also Move it again into the
holder storage, potentially saving two copies per Resolve/Reject.
Also, once all sub-promises have been resolved, the resolve-values can be
Move'd into the joining promise's Resolve function.

MozReview-Commit-ID: 5oxgNEnE5lq

--HG--
extra : rebase_source : f0542055beb1434e7db384722c5123d888ca00e7
2017-01-21 17:33:49 +11:00
..
AbstractThread.cpp Bug 1288618 - Part 6: Avoid unnecessarily allocating a TailDispatcher for XPCOMThreadWrapper. r=bholley 2016-09-21 21:24:43 +12:00
AbstractThread.h Bug 1288618 - Part 6: Avoid unnecessarily allocating a TailDispatcher for XPCOMThreadWrapper. r=bholley 2016-09-21 21:24:43 +12:00
BackgroundHangMonitor.cpp Bug 1324894 - use standard Monitor APIs rather than PR_Interrupt in BackgroundHangMonitor; r=darchons 2017-01-20 16:38:12 -05:00
BackgroundHangMonitor.h Bug 1310880 - Allow a BackgroundHangMonitor to have its own private BackgroundHangThread. r=jchen 2016-10-19 14:32:43 -04:00
HangAnnotations.cpp
HangAnnotations.h
HangMonitor.cpp Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj 2017-01-05 16:34:26 +01:00
HangMonitor.h
LazyIdleThread.cpp Bug 1323100 - Stop double-registering the LazyIdleThread with the profiler. r=froydnj 2016-12-21 23:07:26 +01:00
LazyIdleThread.h
LeakRefPtr.h
MainThreadIdlePeriod.cpp Bug 1314314 - Restrict when idle callbacks are fired. r=bkelly 2016-11-03 18:47:23 +01:00
MainThreadIdlePeriod.h Bug 1314314 - Restrict when idle callbacks are fired. r=bkelly 2016-11-03 18:47:23 +01:00
moz.build Bug 1320753 - Add nsINamed and have Runnable implement it (r=ehsan) 2016-11-30 18:01:59 -08:00
MozPromise.h Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder - r=jwwang 2017-01-21 17:33:49 +11:00
nsEnvironment.cpp
nsEnvironment.h
nsEventQueue.cpp bug 1306591, add secondary event queue to let high priority messages to be processed sooner, r=billm 2016-11-08 14:05:45 +02:00
nsEventQueue.h bug 1306591, add secondary event queue to let high priority messages to be processed sooner, r=billm 2016-11-08 14:05:45 +02:00
nsICancelableRunnable.h
nsIEnvironment.idl
nsIEventTarget.idl Bug 1300118 P0 Rename NS_DISPATCH_TAIL to NS_DISPATCH_AT_END to avoid confusion with AbstractThread::TailDispatch. r=bholley 2016-09-13 20:12:15 -07:00
nsIIdlePeriod.idl Bug 1198381 - Extend nsIThread with idleDispatch, r=froydnj,smaug 2016-08-24 16:18:06 +02:00
nsIIncrementalRunnable.h Bug 1198381 - Extend nsIThread with idleDispatch, r=froydnj,smaug 2016-08-24 16:18:06 +02:00
nsINamed.idl Bug 1320753 - Add nsINamed and have Runnable implement it (r=ehsan) 2016-11-30 18:01:59 -08:00
nsIProcess.idl
nsIRunnable.idl bug 1306591, add secondary event queue to let high priority messages to be processed sooner, r=billm 2016-11-08 14:05:45 +02:00
nsISupportsPriority.idl
nsIThread.idl Bug 1198381 - Extend nsIThread with idleDispatch, r=froydnj,smaug 2016-08-24 16:18:06 +02:00
nsIThreadInternal.idl
nsIThreadManager.idl Bug 1323100 - Add nsThreadManager::NewNamedThread API. r=froydnj 2016-12-20 15:10:20 +01:00
nsIThreadPool.idl
nsITimer.idl
nsMemoryPressure.cpp
nsMemoryPressure.h
nsProcess.h
nsProcessCommon.cpp Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj 2017-01-05 16:34:26 +01:00
nsThread.cpp Bug 1323100 - Add nsThreadManager::NewNamedThread API. r=froydnj 2016-12-20 15:10:20 +01:00
nsThread.h Bug 1323100 - Add nsThreadManager::NewNamedThread API. r=froydnj 2016-12-20 15:10:20 +01:00
nsThreadManager.cpp Bug 1323100 - Add nsThreadManager::NewNamedThread API. r=froydnj 2016-12-20 15:10:20 +01:00
nsThreadManager.h Bug 1299389 - Replace some raw pointers in nsThreadManager. r=froydnj. 2016-06-10 16:04:49 +10:00
nsThreadPool.cpp Bug 1323100 - Use nsThreadPoolNaming::GetNextThreadName and NS_NewNamedThread in nsThreadPool. r=froydnj 2016-12-22 00:14:30 +01:00
nsThreadPool.h bug 1306591, add secondary event queue to let high priority messages to be processed sooner, r=billm 2016-11-08 14:05:45 +02:00
nsThreadSyncDispatch.h Bug 1315560 - Make nsThreadSyncDispatch::IsPending properly respect the C++ memory model with respect to threads. r=froydnj 2016-11-07 15:24:11 -08:00
nsTimerImpl.cpp Bug 1329857 - Remove NS_METHOD and NS_CALLBACK. r=froydnj. 2017-01-10 14:08:43 +11:00
nsTimerImpl.h Bug 1320753 - Adding nsINamed naming to nsITimer (r=ehsan) 2016-11-30 18:01:59 -08:00
SharedThreadPool.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
SharedThreadPool.h Bug 1300118 P0 Rename NS_DISPATCH_TAIL to NS_DISPATCH_AT_END to avoid confusion with AbstractThread::TailDispatch. r=bholley 2016-09-13 20:12:15 -07:00
StateMirroring.h Bug 1320785 - Remove obsolete 'ns' from 'StorensRefPtrPassByPtr' - r=froydnj 2017-01-09 07:55:19 +11:00
StateWatching.h Bug 1313469 - Part 2: Convert TestCOMArray to a gtest. r=froydnj 2016-11-04 16:21:59 -07:00
SyncRunnable.h
TaskDispatcher.h Bug 1313469 - Part 2: Convert TestCOMArray to a gtest. r=froydnj 2016-11-04 16:21:59 -07:00
TaskQueue.cpp Bug 1225731 - Early bailout from TaskQueue::DispatchLocked(). r=froydnj 2016-11-10 15:45:45 +08:00
TaskQueue.h Bug 1316529. Part 2 - remove TaskQueue::DispatchMode. r=froydnj 2016-11-10 15:34:35 +08:00
ThreadStackHelper.cpp Bug 1332577 (part 7) - Rename mozilla_get_pseudo_stack() as profiler_get_pseudo_stack(). r=mstange. 2017-01-20 15:07:05 +11:00
ThreadStackHelper.h
ThrottledEventQueue.cpp Bug 1320753 - Make TabGroup event target be a ThrottledEventQueue for timers, workers (r=bkelly) 2016-12-23 11:48:13 -08:00
ThrottledEventQueue.h Bug 1320753 - Make TabGroup event target be a ThrottledEventQueue for timers, workers (r=bkelly) 2016-12-23 11:48:13 -08:00
TimerThread.cpp Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj 2016-12-21 11:43:50 +01:00
TimerThread.h Bug 1307350: Compensate for repeating timers that have not been appropriately cancelled. r=froydnj 2016-10-04 10:23:39 -05:00