Dactyloidae/xpcom/threads
Gerald Squelart 543e41f3ac Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder.
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.
2023-11-24 17:02:54 +08:00
..
AbstractThread.cpp
AbstractThread.h
BackgroundHangMonitor.cpp
BackgroundHangMonitor.h
HangAnnotations.cpp
HangAnnotations.h
HangMonitor.cpp
HangMonitor.h
LazyIdleThread.cpp
LazyIdleThread.h
LeakRefPtr.h
MainThreadIdlePeriod.cpp
MainThreadIdlePeriod.h
moz.build
MozPromise.h Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder. 2023-11-24 17:02:54 +08:00
nsEnvironment.cpp
nsEnvironment.h
nsEventQueue.cpp
nsEventQueue.h
nsICancelableRunnable.h
nsIEnvironment.idl
nsIEventTarget.idl
nsIIdlePeriod.idl
nsIIncrementalRunnable.h
nsIProcess.idl
nsIRunnable.idl
nsISupportsPriority.idl
nsIThread.idl
nsIThreadInternal.idl
nsIThreadManager.idl
nsIThreadPool.idl
nsITimer.idl
nsMemoryPressure.cpp
nsMemoryPressure.h
nsProcess.h
nsProcessCommon.cpp
nsThread.cpp
nsThread.h
nsThreadManager.cpp
nsThreadManager.h
nsThreadPool.cpp
nsThreadPool.h
nsThreadSyncDispatch.h
nsTimerImpl.cpp
nsTimerImpl.h
SharedThreadPool.cpp
SharedThreadPool.h
StateMirroring.h
StateWatching.h
SyncRunnable.h
TaskDispatcher.h
TaskQueue.cpp
TaskQueue.h
ThrottledEventQueue.cpp
ThrottledEventQueue.h
TimerThread.cpp
TimerThread.h