summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/Queue.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-08-20 14:45:19 +0000
committerGordon Sim <gsim@apache.org>2008-08-20 14:45:19 +0000
commit9a88d24b1a1e9391a224544aa406461071f6dcb3 (patch)
treeb2a7cb98d882e962e5074459bf34fcbc0260e96f /cpp/src/qpid/broker/Queue.h
parentf3ee37b2d37cd22b1499583fdc57b2e88f02a11b (diff)
downloadqpid-python-9a88d24b1a1e9391a224544aa406461071f6dcb3.tar.gz
Remove 'clever' locking as it actually degrades performance.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@687361 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.h')
-rw-r--r--cpp/src/qpid/broker/Queue.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h
index 347fc5cf9d..8b8ba8278f 100644
--- a/cpp/src/qpid/broker/Queue.h
+++ b/cpp/src/qpid/broker/Queue.h
@@ -63,17 +63,6 @@ namespace qpid {
typedef qpid::InlineVector<Consumer*, 5> Listeners;
typedef std::deque<QueuedMessage> Messages;
- class Guard
- {
- qpid::sys::Condition condition;
- size_t count;
- public:
- Guard();
- void lock();
- void unlock();
- void wait(sys::Mutex&);
- };
-
const string name;
const bool autodelete;
MessageStore* store;
@@ -88,7 +77,6 @@ namespace qpid {
mutable qpid::sys::Mutex consumerLock;
mutable qpid::sys::Mutex messageLock;
mutable qpid::sys::Mutex ownershipLock;
- Guard notifierLock;
mutable uint64_t persistenceId;
framing::FieldTable settings;
std::auto_ptr<QueuePolicy> policy;