Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C7261200D35 for ; Tue, 7 Nov 2017 17:51:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C57B8160BED; Tue, 7 Nov 2017 16:51:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 16BE6160BEB for ; Tue, 7 Nov 2017 17:51:47 +0100 (CET) Received: (qmail 25466 invoked by uid 500); 7 Nov 2017 16:51:47 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 25451 invoked by uid 99); 7 Nov 2017 16:51:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2017 16:51:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 30A76CC791; Tue, 7 Nov 2017 16:51:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.25 X-Spam-Level: *** X-Spam-Status: No, score=3.25 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id myZuddJ73QV7; Tue, 7 Nov 2017 16:51:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 624DF5FCC7; Tue, 7 Nov 2017 16:51:45 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 08731E05A2; Tue, 7 Nov 2017 16:51:45 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 041AEC4059E; Tue, 7 Nov 2017 16:51:45 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0932814410031418531==" MIME-Version: 1.0 Subject: Review Request 63634: Changed dispatch to use callable once functors. From: Dmitry Zhuk To: Benjamin Mahler , Michael Park Cc: Dmitry Zhuk , mesos Date: Tue, 07 Nov 2017 16:51:45 -0000 Message-ID: <20171107165145.26135.69453@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Dmitry Zhuk X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/63634/ X-Sender: Dmitry Zhuk Reply-To: Dmitry Zhuk X-ReviewRequest-Repository: mesos archived-at: Tue, 07 Nov 2017 16:51:49 -0000 --===============0932814410031418531== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63634/ ----------------------------------------------------------- Review request for mesos, Benjamin Mahler and Michael Park. Bugs: MESOS-6972 https://issues.apache.org/jira/browse/MESOS-6972 Repository: mesos Description ------- `dispatch` guarantees that functor will be called at most once, and therefore it allows optimizations, such as moves of deferred objects. Diffs ----- 3rdparty/libprocess/include/process/dispatch.hpp 096cae037aec29059e1f13ac467bffe94ecd14ba 3rdparty/libprocess/include/process/event.hpp 2e246205020c3c5b8c2eb5187a8eb3643d1e6d4d 3rdparty/libprocess/src/process.cpp 71ae7129ffbd0e22eda2863b17bbcf588298c37b 3rdparty/libprocess/src/tests/process_tests.cpp 952c92c033e2363cff0c2c68610d3820b97d177e Diff: https://reviews.apache.org/r/63634/diff/1/ Testing ------- make check Thanks, Dmitry Zhuk --===============0932814410031418531==--