You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/03/08 19:22:28 UTC

mesos git commit: Used list::splice() for clock::tick().

Repository: mesos
Updated Branches:
  refs/heads/master 95faeac35 -> 73723850b


Used list::splice() for clock::tick().

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


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

Branch: refs/heads/master
Commit: 73723850b8fa058e44e7e9a68a82a1af394ef701
Parents: 95faeac
Author: Cong Wang <xi...@gmail.com>
Authored: Tue Mar 8 13:22:15 2016 -0500
Committer: Vinod Kone <vi...@gmail.com>
Committed: Tue Mar 8 13:22:15 2016 -0500

----------------------------------------------------------------------
 3rdparty/libprocess/src/clock.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/73723850/3rdparty/libprocess/src/clock.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/clock.cpp b/3rdparty/libprocess/src/clock.cpp
index 6c32792..c402ed6 100644
--- a/3rdparty/libprocess/src/clock.cpp
+++ b/3rdparty/libprocess/src/clock.cpp
@@ -165,9 +165,7 @@ void tick(const Time& time)
         clock::settling = true;
       }
 
-      foreach (const Timer& timer, (*timers)[timeout]) {
-        timedout.push_back(timer);
-      }
+      timedout.splice(timedout.end(), (*timers)[timeout]);
     }
 
     // Now erase the range of timers that timed out.