You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2017/07/19 20:21:25 UTC

[6/7] mesos git commit: Replaced std::map with hashmap for ProcessBase::handlers.

Replaced std::map with hashmap for ProcessBase::handlers.

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


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

Branch: refs/heads/master
Commit: c1b6d978d0193ff34c28b83228f85c3e4a348153
Parents: 0d2a494
Author: Benjamin Hindman <be...@gmail.com>
Authored: Fri Jun 23 00:15:52 2017 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Wed Jul 19 13:18:40 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/c1b6d978/3rdparty/libprocess/include/process/process.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/process.hpp b/3rdparty/libprocess/include/process/process.hpp
index 944fcc6..d40179f 100644
--- a/3rdparty/libprocess/include/process/process.hpp
+++ b/3rdparty/libprocess/include/process/process.hpp
@@ -32,6 +32,7 @@
 #include <process/pid.hpp>
 
 #include <stout/duration.hpp>
+#include <stout/hashmap.hpp>
 #include <stout/lambda.hpp>
 #include <stout/option.hpp>
 #include <stout/synchronized.hpp>
@@ -449,8 +450,8 @@ private:
 
   // Handlers for messages and HTTP requests.
   struct {
-    std::map<std::string, MessageHandler> message;
-    std::map<std::string, HttpEndpoint> http;
+    hashmap<std::string, MessageHandler> message;
+    hashmap<std::string, HttpEndpoint> http;
 
     // Used for delivering HTTP requests in the correct order.
     // Initialized lazily to avoid ProcessBase requiring