You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/05/12 03:38:42 UTC

[2/2] mesos git commit: Removed unnecessary `lambda::bind`s around lambdas.

Removed unnecessary `lambda::bind`s around lambdas.


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

Branch: refs/heads/master
Commit: 84d89ae867d6d3c0ad1df15204c198264ffad816
Parents: d64cf0e
Author: Michael Park <mp...@apache.org>
Authored: Wed May 11 21:38:22 2016 -0600
Committer: Michael Park <mp...@apache.org>
Committed: Wed May 11 21:38:23 2016 -0600

----------------------------------------------------------------------
 3rdparty/libprocess/src/io.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/84d89ae8/3rdparty/libprocess/src/io.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/io.cpp b/3rdparty/libprocess/src/io.cpp
index 6fa2b85..44dee23 100644
--- a/3rdparty/libprocess/src/io.cpp
+++ b/3rdparty/libprocess/src/io.cpp
@@ -290,7 +290,7 @@ Future<size_t> peek(int fd, void* data, size_t size, size_t limit)
   internal::read(fd, data, limit, internal::PEEK, promise, io::READ);
 
   // NOTE: We wrap `os::close` in a lambda to disambiguate on Windows.
-  promise->future().onAny(lambda::bind([fd]() { os::close(fd); }));
+  promise->future().onAny([fd]() { os::close(fd); });
 
   return promise->future();
 }
@@ -440,7 +440,7 @@ Future<string> read(int fd)
 
   // NOTE: We wrap `os::close` in a lambda to disambiguate on Windows.
   return internal::_read(fd, buffer, data, BUFFERED_READ_SIZE)
-    .onAny(lambda::bind([fd]() { os::close(fd); }));
+    .onAny([fd]() { os::close(fd); });
 }
 
 
@@ -482,7 +482,7 @@ Future<Nothing> write(int fd, const string& data)
 
   // NOTE: We wrap `os::close` in a lambda to disambiguate on Windows.
   return internal::_write(fd, Owned<string>(new string(data)), 0)
-    .onAny(lambda::bind([fd]() { os::close(fd); }));
+    .onAny([fd]() { os::close(fd); });
 }
 
 
@@ -553,8 +553,8 @@ Future<Nothing> redirect(int from, Option<int> to, size_t chunk)
 
   // NOTE: We wrap `os::close` in a lambda to disambiguate on Windows.
   return internal::splice(from, to.get(), chunk)
-    .onAny(lambda::bind([from]() { os::close(from); }))
-    .onAny(lambda::bind([to]() { os::close(to.get()); }));
+    .onAny([from]() { os::close(from); })
+    .onAny([to]() { os::close(to.get()); });
 }