Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4013fa3
)
THRIFT-1333: Make RWGuard not copyable
author
Jake Farrell
<jfarrell@apache.org>
Fri, 9 Sep 2011 04:32:36 +0000
(
04:32
+0000)
committer
Jake Farrell
<jfarrell@apache.org>
Fri, 9 Sep 2011 04:32:36 +0000
(
04:32
+0000)
Client: cpp
Patch: Dave Watson
Copying would cause contained mutex to unlock twice, changing to noncopyable.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1166996
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/concurrency/Mutex.h
patch
|
blob
|
history
diff --git
a/lib/cpp/src/concurrency/Mutex.h
b/lib/cpp/src/concurrency/Mutex.h
index
3267c73
..
4b1c3bf
100644
(file)
--- a/
lib/cpp/src/concurrency/Mutex.h
+++ b/
lib/cpp/src/concurrency/Mutex.h
@@
-138,7
+138,7
@@
enum RWGuardType {
};
-class RWGuard {
+class RWGuard
: boost::noncopyable
{
public:
RWGuard(const ReadWriteMutex& value, bool write = false)
: rw_mutex_(value) {