Repository: mesos Updated Branches: refs/heads/master 01c9de08f -> a851d75cf
Replace some asserts with CHECKs in dispatch. Review: Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a851d75c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a851d75c Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/a851d75c Branch: refs/heads/master Commit: a851d75cf6ff626efbf6428435c60a1ca1838ee1 Parents: 01c9de0 Author: Dominic Hamon <[email protected]> Authored: Tue Sep 23 10:21:58 2014 -0700 Committer: Dominic Hamon <[email protected]> Committed: Thu Oct 2 13:37:20 2014 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/include/process/dispatch.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/a851d75c/3rdparty/libprocess/include/process/dispatch.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/include/process/dispatch.hpp b/3rdparty/libprocess/include/process/dispatch.hpp index 88570f7..bceda2a 100644 --- a/3rdparty/libprocess/include/process/dispatch.hpp +++ b/3rdparty/libprocess/include/process/dispatch.hpp @@ -71,7 +71,7 @@ void vdispatcher( { assert(process != NULL); T* t = dynamic_cast<T*>(process); - assert(t != NULL); + CHECK_NOTNULL(t); (*thunk)(t); } @@ -82,9 +82,9 @@ void pdispatcher( memory::shared_ptr<lambda::function<Future<R>(T*)> > thunk, memory::shared_ptr<Promise<R> > promise) { - assert(process != NULL); + CHECK_NOTNULL(process); T* t = dynamic_cast<T*>(process); - assert(t != NULL); + CHECK_NOTNULL(t); promise->associate((*thunk)(t)); } @@ -95,9 +95,9 @@ void rdispatcher( memory::shared_ptr<lambda::function<R(T*)> > thunk, memory::shared_ptr<Promise<R> > promise) { - assert(process != NULL); + CHECK_NOTNULL(process); T* t = dynamic_cast<T*>(process); - assert(t != NULL); + CHECK_NOTNULL(t); promise->set((*thunk)(t)); }
