Return-Path: X-Original-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7FDC98F3 for ; Mon, 18 Jun 2012 22:41:40 +0000 (UTC) Received: (qmail 36241 invoked by uid 500); 18 Jun 2012 22:41:40 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 36217 invoked by uid 500); 18 Jun 2012 22:41:40 -0000 Mailing-List: contact mesos-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mesos-dev@incubator.apache.org Delivered-To: mailing list mesos-dev@incubator.apache.org Received: (qmail 36206 invoked by uid 99); 18 Jun 2012 22:41:40 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 22:41:40 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 4BE4A1C083D; Mon, 18 Jun 2012 22:41:40 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4490153643594971854==" MIME-Version: 1.0 Subject: Re: Review Request: Add APIs for event notification in cgroups. From: "Jie Yu" To: "Benjamin Hindman" , "Vinod Kone" Cc: "Jie Yu" , "mesos" Date: Mon, 18 Jun 2012 22:41:40 -0000 Message-ID: <20120618224140.28905.16160@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Jie Yu" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/5395/ X-Sender: "Jie Yu" References: <20120618210031.28905.66631@reviews.apache.org> In-Reply-To: <20120618210031.28905.66631@reviews.apache.org> Reply-To: "Jie Yu" --===============4490153643594971854== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/5395/ ----------------------------------------------------------- (Updated June 18, 2012, 10:41 p.m.) Review request for mesos, Benjamin Hindman and Vinod Kone. Changes ------- The newest version. Description ------- In cgroups, sometimes you want to be notified if some certain events happen= . For example, users may want to be notified when an out-of-memory event ha= ppens. This patch introduce a function called "listenEvent" which returns an insta= nce of Future so that you can check the status of this future to see whethe= r any event happens. This interface is general to all the events in cgroups. Diffs (updated) ----- src/linux/cgroups.hpp PRE-CREATION = src/linux/cgroups.cpp PRE-CREATION = src/tests/cgroups_tests.cpp PRE-CREATION = Diff: https://reviews.apache.org/r/5395/diff/ Testing ------- On Linux machines, make check. Thanks, Jie Yu --===============4490153643594971854==--