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 2014/04/10 22:58:56 UTC

git commit: Fixed process::await and process::collect to take const references.

Repository: mesos
Updated Branches:
  refs/heads/master b2f6553b5 -> df0ead2dd


Fixed process::await and process::collect to take const references.

Review: https://reviews.apache.org/r/20231


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

Branch: refs/heads/master
Commit: df0ead2ddd9c632f20c201964949eeb4432a4af9
Parents: b2f6553
Author: Dominic Hamon <dh...@twopensource.com>
Authored: Thu Apr 10 13:58:20 2014 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Thu Apr 10 13:58:20 2014 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/collect.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/df0ead2d/3rdparty/libprocess/include/process/collect.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/collect.hpp b/3rdparty/libprocess/include/process/collect.hpp
index 54b563f..f4d39b7 100644
--- a/3rdparty/libprocess/include/process/collect.hpp
+++ b/3rdparty/libprocess/include/process/collect.hpp
@@ -29,7 +29,7 @@ namespace process {
 // the result future will be a failure.
 template <typename T>
 Future<std::list<T> > collect(
-    std::list<Future<T> >& futures,
+    const std::list<Future<T> >& futures,
     const Option<Timeout>& timeout = None());
 
 
@@ -37,7 +37,7 @@ Future<std::list<T> > collect(
 // non-pending futures. On timeout, the result will be a failure.
 template <typename T>
 Future<std::list<Future<T> > > await(
-    std::list<Future<T> >& futures,
+    const std::list<Future<T> >& futures,
     const Option<Timeout>& timeout = None());
 
 
@@ -233,7 +233,7 @@ Future<tuples::tuple<Future<T1>, Future<T2> > > __await(
 
 template <typename T>
 inline Future<std::list<T> > collect(
-    std::list<Future<T> >& futures,
+    const std::list<Future<T> >& futures,
     const Option<Timeout>& timeout)
 {
   if (futures.empty()) {
@@ -249,7 +249,7 @@ inline Future<std::list<T> > collect(
 
 template <typename T>
 inline Future<std::list<Future<T> > > await(
-    std::list<Future<T> >& futures,
+    const std::list<Future<T> >& futures,
     const Option<Timeout>& timeout)
 {
   if (futures.empty()) {