gecko-dev/xpcom/glue
Gerald Squelart e8513ef5ee Bug 1271593 - NS_NewRunnableFunction should forward its arg - r=froydnj
By perfect-forwarding its argument, we can automatically gain move semantics
optimization when storing the given function object into nsRunnableFunction.
Also it allows movable-only function objects.

Note that any reference is removed from the type to be stored, so that the
runnable always contain a concrete function object.

MozReview-Commit-ID: 9EZK84ZhMvR

--HG--
extra : rebase_source : e1f87c3284fda4df6d13839ea6a0b0c2ce196833
2016-06-02 01:21:36 +02:00
..
standalone Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
staticruntime Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
tests/gtest Bug 1278223 part 1 - Stop using multiple contexts per runtime in gtests. r=fitzgen 2016-06-06 19:45:06 +02:00
AppData.cpp Bug 1035125 Part 9: Link Chromium sandbox into firefox.exe instead of having a separate DLL. r=aklotz,glandium 2016-05-15 16:41:40 +01:00
AppData.h
AutoRestore.h Bug 1272831 - Add AutoRestore::SavedValue() to retrieve the saved value. r=froydnj 2016-05-14 09:47:14 +08:00
BlockingResourceBase.cpp Bug 1270938 - Add stack traces for blocking resource base warnings. r=froydnj 2016-05-23 14:59:30 -07:00
BlockingResourceBase.h Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
CondVar.h
DeadlockDetector.h
EnumeratedArrayCycleCollection.h
FileUtils.cpp Bug 1234176 - Introduce and use the WriteSysFile() helper function. r=dhylands 2015-12-29 11:49:50 +01:00
FileUtils.h Bug 1234176 - Introduce and use the WriteSysFile() helper function. r=dhylands 2015-12-29 11:49:50 +01:00
GenericFactory.cpp
GenericFactory.h
GenericModule.cpp
IntentionalCrash.h
MainThreadUtils.h
Monitor.h
moz.build Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Mutex.h
nsArrayEnumerator.cpp
nsArrayEnumerator.h
nsArrayUtils.cpp
nsArrayUtils.h
nsBaseHashtable.h Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj. 2016-04-27 14:16:50 +10:00
nsCategoryCache.cpp
nsCategoryCache.h
nsClassHashtable.h
nsClassInfoImpl.cpp
nsCOMArray.cpp Bug 1277890 - part 0 - add "append already_AddRefed element" API to nsCOMArray; r=erahm 2016-06-07 04:10:25 -04:00
nsCOMArray.h Bug 1277890 - part 0 - add "append already_AddRefed element" API to nsCOMArray; r=erahm 2016-06-07 04:10:25 -04:00
nsComponentManagerUtils.cpp Bug 1262400 - remove outer pointers from nsCreateInstance* classes; r=erahm 2016-04-14 11:30:59 -04:00
nsComponentManagerUtils.h Bug 1262400 - remove outer pointers from nsCreateInstance* classes; r=erahm 2016-04-14 11:30:59 -04:00
nsCOMPtr.cpp
nsCOMPtr.h Bug 1193762 part 9 - Delete nsCOMPtr<T>::operator T*()&&; r=froydnj 2016-05-01 21:29:23 +03:00
nsCRTGlue.cpp
nsCRTGlue.h
nsCycleCollectionNoteChild.h
nsCycleCollectionNoteRootCallback.h
nsCycleCollectionParticipant.cpp Bug 1231964 - Move CC participant code that touches JS out of mozglue. r=smaug 2015-12-18 14:22:01 -08:00
nsCycleCollectionParticipant.h Bug 1271848, part 1 - Add ClassName() method to the CC participant. r=smaug 2016-05-12 10:54:33 -07:00
nsCycleCollectionTraversalCallback.h
nsDataHashtable.h
nsDebug.h
nsDeque.cpp Bug 1264199: P0. Fix nsDequeue/MediaQueue methods constness. r=jwwang 2016-04-25 12:13:55 +10:00
nsDeque.h Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj. 2016-04-27 14:16:50 +10:00
nsEnumeratorUtils.cpp
nsEnumeratorUtils.h
nsHashKeys.h Bug 1229458 - Remove SizeOfIncludingThisMustBeUnshared() from string classes. r=mccr8. 2015-12-01 15:36:26 -08:00
nsIClassInfoImpl.h
nsID.cpp
nsID.h Bug 1242963 - nsID stringification helper for logging; r=froydnj 2015-10-08 13:11:04 -04:00
nsIInterfaceRequestorUtils.cpp
nsIInterfaceRequestorUtils.h
nsINIParser.cpp Bug 1219246 - use UniquePtr instead of nsAuto*Ptr in xpcom/; r=erahm 2015-10-31 13:47:14 -04:00
nsINIParser.h Bug 1219246 - use UniquePtr instead of nsAuto*Ptr in xpcom/; r=erahm 2015-10-31 13:47:14 -04:00
nsInterfaceHashtable.h
nsISupportsImpl.cpp
nsISupportsImpl.h Bug 1273838 - Part 2: Add stylo bindings glue for refcounting nsIPrincipals and nsIURIs. r=bholley 2016-05-21 10:02:54 +10:00
nsISupportsUtils.h
nsIWeakReferenceUtils.h
nsJSThingHashtable.h
nsMemory.cpp
nsMemory.h
nsProxyRelease.h Bug 1273838 - Part 0.9: Add Ptr{Holder,Handle} typedefs for nsMainThreadPtr{Holder,Handle}. r=bholley 2016-05-21 10:02:54 +10:00
nsQuickSort.cpp
nsQuickSort.h
nsRefPtrHashtable.h Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj. 2016-04-27 14:16:50 +10:00
nsServiceManagerUtils.h
nsStringAPI.cpp Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan 2016-01-22 16:58:49 +01:00
nsStringAPI.h Bug 1263764 - Make the external string API's Truncate compatible with the internal API's Truncate. r=froydnj 2016-04-01 16:17:35 +01:00
nsStringGlue.h
nsTArray-inl.h Bug 1235261 - Part 5: Merge nsAutoArrayBase into AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
nsTArray.cpp
nsTArray.h Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj. 2016-04-27 14:16:50 +10:00
nsTArrayForwardDeclare.h Bug 1235261 - Part 7: Remove AutoInfallibleTArray. r=froydnj 2016-02-02 17:36:31 +02:00
nsTextFormatter.cpp Bug 1278452 - Remove a redundant null check in xpcom/glue/. r=froydnj. 2016-06-07 16:13:17 +10:00
nsTextFormatter.h
nsTHashtable.h Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj. 2016-04-27 14:16:50 +10:00
nsThreadUtils.cpp Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
nsThreadUtils.h Bug 1271593 - NS_NewRunnableFunction should forward its arg - r=froydnj 2016-06-02 01:21:36 +02:00
nsTObserverArray.cpp
nsTObserverArray.h Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
nsTPriorityQueue.h
nsTWeakRef.h
nsVersionComparator.cpp
nsVersionComparator.h
nsWeakReference.cpp
nsWeakReference.h
nsXPTCUtils.h
objs.mozbuild Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-10 08:23:00 +01:00
Observer.h
PLDHashTable.cpp Bug 1253085 - Remove the |PLDHashTable*| argument from PLDHash{HashKey,MatchEntry}. r=froydnj. 2016-03-16 15:33:44 +11:00
PLDHashTable.h Bug 1253085 - Remove the |PLDHashTable*| argument from PLDHash{HashKey,MatchEntry}. r=froydnj. 2016-03-16 15:33:44 +11:00
ReentrantMonitor.h