You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2015/03/17 00:23:46 UTC

[1/2] mesos git commit: Fixed whitespace in future.hpp.

Repository: mesos
Updated Branches:
  refs/heads/master 64b12f50e -> b6d2f2def


Fixed whitespace in future.hpp.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/94d90d00
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/94d90d00
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/94d90d00

Branch: refs/heads/master
Commit: 94d90d00806407b1f05d1ce57633a880f169c7f3
Parents: 64b12f5
Author: Benjamin Mahler <be...@gmail.com>
Authored: Mon Mar 16 16:22:38 2015 -0700
Committer: Benjamin Mahler <be...@gmail.com>
Committed: Mon Mar 16 16:23:16 2015 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/future.hpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/94d90d00/3rdparty/libprocess/include/process/future.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/future.hpp b/3rdparty/libprocess/include/process/future.hpp
index 68d6682..f814557 100644
--- a/3rdparty/libprocess/include/process/future.hpp
+++ b/3rdparty/libprocess/include/process/future.hpp
@@ -537,14 +537,14 @@ private:
 
 namespace internal {
 
-  // Helper for executing callbacks that have been registered.
-  template <typename C, typename... Arguments>
-  void run(const std::vector<C>& callbacks, Arguments&&... arguments)
-  {
-    for (size_t i = 0; i < callbacks.size(); ++i) {
-      callbacks[i](std::forward<Arguments>(arguments)...);
-    }
+// Helper for executing callbacks that have been registered.
+template <typename C, typename... Arguments>
+void run(const std::vector<C>& callbacks, Arguments&&... arguments)
+{
+  for (size_t i = 0; i < callbacks.size(); ++i) {
+    callbacks[i](std::forward<Arguments>(arguments)...);
   }
+}
 
 } // namespace internal {
 


[2/2] mesos git commit: Restored TODO on Future lost during 2885c809.

Posted by bm...@apache.org.
Restored TODO on Future lost during 2885c809.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b6d2f2de
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b6d2f2de
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b6d2f2de

Branch: refs/heads/master
Commit: b6d2f2defb15297aae5ce49827dadddf65cbaf45
Parents: 94d90d0
Author: Benjamin Mahler <be...@gmail.com>
Authored: Mon Mar 16 16:23:31 2015 -0700
Committer: Benjamin Mahler <be...@gmail.com>
Committed: Mon Mar 16 16:23:31 2015 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/future.hpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/b6d2f2de/3rdparty/libprocess/include/process/future.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/future.hpp b/3rdparty/libprocess/include/process/future.hpp
index f814557..530e153 100644
--- a/3rdparty/libprocess/include/process/future.hpp
+++ b/3rdparty/libprocess/include/process/future.hpp
@@ -538,6 +538,8 @@ private:
 namespace internal {
 
 // Helper for executing callbacks that have been registered.
+//
+// TODO(*): Invoke callbacks in another execution context.
 template <typename C, typename... Arguments>
 void run(const std::vector<C>& callbacks, Arguments&&... arguments)
 {