Return-Path: X-Original-To: apmail-mesos-reviews-archive@minotaur.apache.org Delivered-To: apmail-mesos-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3579218E91 for ; Thu, 30 Jul 2015 23:24:47 +0000 (UTC) Received: (qmail 1571 invoked by uid 500); 30 Jul 2015 23:24:47 -0000 Delivered-To: apmail-mesos-reviews-archive@mesos.apache.org Received: (qmail 1544 invoked by uid 500); 30 Jul 2015 23:24: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 1526 invoked by uid 99); 30 Jul 2015 23:24:46 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2015 23:24:46 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id D0D17D7B30; Thu, 30 Jul 2015 23:24:45 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2579722014191405566==" MIME-Version: 1.0 Subject: Re: Review Request 36625: Windows: Split up platform specific functions into separate headers. From: "Benjamin Hindman" To: "Artem Harutyunyan" , "Benjamin Hindman" , "Joris Van Remoortere" , "Alex Clemmer" Cc: "Joseph Wu" , "mesos" Date: Thu, 30 Jul 2015 23:24:45 -0000 Message-ID: <20150730232445.1540.94892@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Benjamin Hindman" X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/36625/ X-Sender: "Benjamin Hindman" References: <20150729231853.1539.54391@reviews.apache.org> In-Reply-To: <20150729231853.1539.54391@reviews.apache.org> Reply-To: "Benjamin Hindman" X-ReviewRequest-Repository: mesos --===============2579722014191405566== 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/36625/#review93671 ----------------------------------------------------------- Ship it! Ship It! - Benjamin Hindman On July 29, 2015, 11:18 p.m., Joseph Wu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/36625/ > ----------------------------------------------------------- > > (Updated July 29, 2015, 11:18 p.m.) > > > Review request for mesos, Benjamin Hindman, Artem Harutyunyan, Alex Clemmer, and Joris Van Remoortere. > > > Bugs: MESOS-3101 > https://issues.apache.org/jira/browse/MESOS-3101 > > > Repository: mesos > > > Description > ------- > > To support the upcoming Windows Containerizer (MESOS-3094), we're splitting up (refactoring) platform specific functions into separate files. > > We will avoid having `#ifdef __WINDOWS__` all over the stout/libprcess code by separating Posix/Windows versions. > This first patch is to establish a pattern in splitting up the headers. > > Patterns: > > * gzip.hpp, thread.hpp - Functions are moved to a Posix folder; copied to a Windows folder and gutted for later implementation. > * abort.hpp, exit.hpp, unreachable.hpp - Added macro for `__attribute__((noreturn))`. > * duration.hpp - An #ifdef for one of the headers (time.h vs Winsock2.h). No need to split the header. > * format.hpp - Missing Windows function (vasprintf) implementation added. > * ip.hpp - Added aliases for Windows functions. > * net.hpp - Curl functions were moved to Posix/Windows folders. > > > Other: > > * Instances of #include "local file.hpp" were changed to #include " to match os.hpp. > * Some missing #endif comments (i.e. `// __APPLE__`) were added. > > > Diffs > ----- > > 3rdparty/libprocess/3rdparty/stout/include/Makefile.am 5c19e3ef8ba50ab007eda26b752441f076ca7ed0 > 3rdparty/libprocess/3rdparty/stout/include/stout/abort.hpp 3aa9487bed2df038ca27a8bb94c24608ca7910a4 > 3rdparty/libprocess/3rdparty/stout/include/stout/attributes.hpp PRE-CREATION > 3rdparty/libprocess/3rdparty/stout/include/stout/duration.hpp bba8303347aac3f70566a9e69625a928cfb1bd24 > 3rdparty/libprocess/3rdparty/stout/include/stout/exit.hpp 8c16a224433d7a43bf6bf17e1129e6eb9bbbd573 > 3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp 4e8c3bd1e9abf0ff24f78c8385ed9625719dcf8c > 3rdparty/libprocess/3rdparty/stout/include/stout/gzip.hpp 0b95819205af6caae05c01cb4d0b25620abe791c > 3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp a0ea23797376288e8dc96886fd3c0702e5edf846 > 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp a538fb1a343aab039aecabe508b7747e683fd46e > 3rdparty/libprocess/3rdparty/stout/include/stout/posix/gzip.hpp PRE-CREATION > 3rdparty/libprocess/3rdparty/stout/include/stout/posix/net.hpp PRE-CREATION > 3rdparty/libprocess/3rdparty/stout/include/stout/posix/thread.hpp PRE-CREATION > 3rdparty/libprocess/3rdparty/stout/include/stout/thread.hpp 552d6e97c882a36d6a889af205c422e51f544b34 > 3rdparty/libprocess/3rdparty/stout/include/stout/unreachable.hpp fed0a7ba81c98be83a0d66c2317e768877f8e40d > 3rdparty/libprocess/3rdparty/stout/include/stout/windows/format.hpp PRE-CREATION > 3rdparty/libprocess/3rdparty/stout/include/stout/windows/gzip.hpp PRE-CREATION > 3rdparty/libprocess/3rdparty/stout/include/stout/windows/net.hpp PRE-CREATION > 3rdparty/libprocess/3rdparty/stout/include/stout/windows/preprocessor.hpp PRE-CREATION > 3rdparty/libprocess/3rdparty/stout/include/stout/windows/thread.hpp PRE-CREATION > > Diff: https://reviews.apache.org/r/36625/diff/ > > > Testing > ------- > > `make` and `make check` (Mac OSX). > > Build with MSVC Enterprise 2015 [thanks to Alex (hausdorff)]. > > > Thanks, > > Joseph Wu > > --===============2579722014191405566==--