Return-Path: X-Original-To: apmail-thrift-commits-archive@www.apache.org Delivered-To: apmail-thrift-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9503E83C7 for ; Thu, 1 Sep 2011 16:53:21 +0000 (UTC) Received: (qmail 35218 invoked by uid 500); 1 Sep 2011 16:53:21 -0000 Delivered-To: apmail-thrift-commits-archive@thrift.apache.org Received: (qmail 35201 invoked by uid 500); 1 Sep 2011 16:53:20 -0000 Mailing-List: contact commits-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list commits@thrift.apache.org Received: (qmail 35194 invoked by uid 99); 1 Sep 2011 16:53:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 16:53:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 16:53:18 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 44E9C23889E5; Thu, 1 Sep 2011 16:52:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1164164 - /thrift/trunk/lib/cpp/src/concurrency/Mutex.h Date: Thu, 01 Sep 2011 16:52:57 -0000 To: commits@thrift.apache.org From: bryanduxbury@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110901165257.44E9C23889E5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bryanduxbury Date: Thu Sep 1 16:52:56 2011 New Revision: 1164164 URL: http://svn.apache.org/viewvc?rev=1164164&view=rev Log: THRIFT-1317. cpp: Remove copy constructibility from thrift::concurrency::Guard Patch: Jordan DeLong Modified: thrift/trunk/lib/cpp/src/concurrency/Mutex.h Modified: thrift/trunk/lib/cpp/src/concurrency/Mutex.h URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/concurrency/Mutex.h?rev=1164164&r1=1164163&r2=1164164&view=diff ============================================================================== --- thrift/trunk/lib/cpp/src/concurrency/Mutex.h (original) +++ thrift/trunk/lib/cpp/src/concurrency/Mutex.h Thu Sep 1 16:52:56 2011 @@ -21,6 +21,7 @@ #define _THRIFT_CONCURRENCY_MUTEX_H_ 1 #include +#include namespace apache { namespace thrift { namespace concurrency { @@ -100,7 +101,7 @@ private: boost::shared_ptr impl_; }; -class Guard { +class Guard : boost::noncopyable { public: Guard(const Mutex& value, int64_t timeout = 0) : mutex_(&value) { if (timeout == 0) {