From: Bryan Duxbury Date: Thu, 1 Sep 2011 16:52:56 +0000 (+0000) Subject: THRIFT-1317. cpp: Remove copy constructibility from X-Git-Tag: 0.8.0~107 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=c58c9e8e41051fa673d3b4ae7656e5471c39b786;p=common%2Fthrift.git THRIFT-1317. cpp: Remove copy constructibility from thrift::concurrency::Guard Patch: Jordan DeLong git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164164 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/concurrency/Mutex.h b/lib/cpp/src/concurrency/Mutex.h index 3ee5c6b8..3267c73b 100644 --- a/lib/cpp/src/concurrency/Mutex.h +++ b/lib/cpp/src/concurrency/Mutex.h @@ -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) {