thrift::concurrency::Guard
Patch: Jordan DeLong
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1164164 13f79535-47bb-0310-9956-
ffa450edef68
 #define _THRIFT_CONCURRENCY_MUTEX_H_ 1
 
 #include <boost/shared_ptr.hpp>
+#include <boost/noncopyable.hpp>
 
 namespace apache { namespace thrift { namespace concurrency {
 
   boost::shared_ptr<impl> impl_;
 };
 
-class Guard {
+class Guard : boost::noncopyable {
  public:
   Guard(const Mutex& value, int64_t timeout = 0) : mutex_(&value) {
     if (timeout == 0) {