You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ya...@apache.org on 2017/03/16 22:23:23 UTC
mesos git commit: Bumped up the number of args allowed in some
libprocess templates.
Repository: mesos
Updated Branches:
refs/heads/master 10d6547d6 -> b4324db84
Bumped up the number of args allowed in some libprocess templates.
Review: https://reviews.apache.org/r/57520
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b4324db8
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b4324db8
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b4324db8
Branch: refs/heads/master
Commit: b4324db841950aad48d7cafcf39f3bb30fe0fcc3
Parents: 10d6547
Author: Yan Xu <xu...@apple.com>
Authored: Tue Feb 28 12:00:06 2017 -0800
Committer: Jiang Yan Xu <xu...@apple.com>
Committed: Thu Mar 16 15:21:38 2017 -0700
----------------------------------------------------------------------
3rdparty/libprocess/include/process/async.hpp | 10 +++++-----
3rdparty/libprocess/include/process/defer.hpp | 6 +++---
3rdparty/libprocess/include/process/deferred.hpp | 10 +++++-----
3rdparty/libprocess/include/process/delay.hpp | 2 +-
3rdparty/libprocess/include/process/dispatch.hpp | 6 +++---
3rdparty/libprocess/include/process/run.hpp | 2 +-
6 files changed, 18 insertions(+), 18 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/b4324db8/3rdparty/libprocess/include/process/async.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/async.hpp b/3rdparty/libprocess/include/process/async.hpp
index f4af6c8..a883f88 100644
--- a/3rdparty/libprocess/include/process/async.hpp
+++ b/3rdparty/libprocess/include/process/async.hpp
@@ -60,7 +60,7 @@ Future<Nothing> async(
ENUM_BINARY_PARAMS(N, A, a), \
typename std::enable_if<std::is_void<typename result_of<F(ENUM_PARAMS(N, A))>::type>::value>::type* = nullptr); // NOLINT(whitespace/line_length)
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
@@ -128,7 +128,7 @@ private:
return Nothing(); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
};
@@ -161,7 +161,7 @@ private:
ENUM_BINARY_PARAMS(N, A, a), \
typename std::enable_if<std::is_void<typename result_of<F(ENUM_PARAMS(N, A))>::type>::value>::type*); // NOLINT(whitespace/line_length)
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
AsyncExecutor()
@@ -226,7 +226,7 @@ private:
return dispatch(process, method, f, ENUM_PARAMS(N, a)); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
PID<AsyncExecutorProcess> process;
@@ -271,7 +271,7 @@ Future<Nothing> async(
return AsyncExecutor().execute(f, ENUM_PARAMS(N, a)); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
} // namespace process {
http://git-wip-us.apache.org/repos/asf/mesos/blob/b4324db8/3rdparty/libprocess/include/process/defer.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/defer.hpp b/3rdparty/libprocess/include/process/defer.hpp
index a3174d4..7f3369e 100644
--- a/3rdparty/libprocess/include/process/defer.hpp
+++ b/3rdparty/libprocess/include/process/defer.hpp
@@ -96,7 +96,7 @@ Deferred<void()> defer(const Process<T>* process, void (T::*method)())
return defer(process->self(), method, ENUM_PARAMS(N, a)); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
@@ -161,7 +161,7 @@ Deferred<Future<R>()> defer(const Process<T>* process, Future<R> (T::*method)())
return defer(process->self(), method, ENUM_PARAMS(N, a)); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
@@ -228,7 +228,7 @@ Deferred<Future<R>()> defer(const Process<T>* process, R (T::*method)())
return defer(process->self(), method, ENUM_PARAMS(N, a)); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
http://git-wip-us.apache.org/repos/asf/mesos/blob/b4324db8/3rdparty/libprocess/include/process/deferred.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/deferred.hpp b/3rdparty/libprocess/include/process/deferred.hpp
index ee902a6..e446621 100644
--- a/3rdparty/libprocess/include/process/deferred.hpp
+++ b/3rdparty/libprocess/include/process/deferred.hpp
@@ -180,7 +180,7 @@ struct _Deferred
}); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
#define TEMPLATE(Z, N, DATA) \
@@ -222,7 +222,7 @@ struct _Deferred
}); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
private:
@@ -240,7 +240,7 @@ private:
ENUM_BINARY_PARAMS(N, A, a)) \
-> _Deferred<decltype(std::bind(&std::function<void(ENUM_PARAMS(N, P))>::operator(), std::function<void(ENUM_PARAMS(N, P))>(), ENUM_PARAMS(N, a)))>; // NOLINT(whitespace/line_length)
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
#define TEMPLATE(Z, N, DATA) \
@@ -253,7 +253,7 @@ private:
ENUM_BINARY_PARAMS(N, A, a)) \
-> _Deferred<decltype(std::bind(&std::function<Future<R>(ENUM_PARAMS(N, P))>::operator(), std::function<Future<R>(ENUM_PARAMS(N, P))>(), ENUM_PARAMS(N, a)))>; // NOLINT(whitespace/line_length)
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
#define TEMPLATE(Z, N, DATA) \
@@ -266,7 +266,7 @@ private:
ENUM_BINARY_PARAMS(N, A, a)) \
-> _Deferred<decltype(std::bind(&std::function<Future<R>(ENUM_PARAMS(N, P))>::operator(), std::function<Future<R>(ENUM_PARAMS(N, P))>(), ENUM_PARAMS(N, a)))>; // NOLINT(whitespace/line_length)
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
_Deferred(const UPID& pid, F f) : pid(pid), f(f) {}
http://git-wip-us.apache.org/repos/asf/mesos/blob/b4324db8/3rdparty/libprocess/include/process/delay.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/delay.hpp b/3rdparty/libprocess/include/process/delay.hpp
index 3a2a7c1..13435a1 100644
--- a/3rdparty/libprocess/include/process/delay.hpp
+++ b/3rdparty/libprocess/include/process/delay.hpp
@@ -92,7 +92,7 @@ Timer delay(const Duration& duration,
return delay(duration, process->self(), method, ENUM_PARAMS(N, a)); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
} // namespace process {
http://git-wip-us.apache.org/repos/asf/mesos/blob/b4324db8/3rdparty/libprocess/include/process/dispatch.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/dispatch.hpp b/3rdparty/libprocess/include/process/dispatch.hpp
index 211a463..426aa49 100644
--- a/3rdparty/libprocess/include/process/dispatch.hpp
+++ b/3rdparty/libprocess/include/process/dispatch.hpp
@@ -226,7 +226,7 @@ void dispatch(const Process<T>* process, void (T::*method)())
dispatch(process->self(), method, ENUM_PARAMS(N, a)); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
@@ -313,7 +313,7 @@ Future<R> dispatch(const Process<T>* process, Future<R> (T::*method)())
return dispatch(process->self(), method, ENUM_PARAMS(N, a)); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
@@ -400,7 +400,7 @@ Future<R> dispatch(const Process<T>* process, R (T::*method)())
return dispatch(process->self(), method, ENUM_PARAMS(N, a)); \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
http://git-wip-us.apache.org/repos/asf/mesos/blob/b4324db8/3rdparty/libprocess/include/process/run.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/run.hpp b/3rdparty/libprocess/include/process/run.hpp
index 2c8b836..1540a78 100644
--- a/3rdparty/libprocess/include/process/run.hpp
+++ b/3rdparty/libprocess/include/process/run.hpp
@@ -87,7 +87,7 @@ Future<R> run(R (*method)())
return future; \
}
- REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
+ REPEAT_FROM_TO(1, 12, TEMPLATE, _) // Args A0 -> A10.
#undef TEMPLATE
} // namespace process {