summaryrefslogtreecommitdiff
path: root/cpp/src/tests/storePerfTools/asyncPerf/MockPersistableQueue.cpp
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2012-05-09 17:28:34 +0000
committerKim van der Riet <kpvdr@apache.org>2012-05-09 17:28:34 +0000
commit7ed6d96613a02d53a34a5c8e8d524a0b3c19d83d (patch)
tree08c811105b9bb57e1dc3eb95b0e9ca3bf4d8c442 /cpp/src/tests/storePerfTools/asyncPerf/MockPersistableQueue.cpp
parent2e3690efe94e6161d129ebce2f8c22cb25819ec1 (diff)
downloadqpid-python-7ed6d96613a02d53a34a5c8e8d524a0b3c19d83d.tar.gz
QPID-3858: Fixed condition variable wait loop, minor updates to cmake builds
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1336306 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/storePerfTools/asyncPerf/MockPersistableQueue.cpp')
-rw-r--r--cpp/src/tests/storePerfTools/asyncPerf/MockPersistableQueue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/storePerfTools/asyncPerf/MockPersistableQueue.cpp b/cpp/src/tests/storePerfTools/asyncPerf/MockPersistableQueue.cpp
index ff9b76c421..3b92af9803 100644
--- a/cpp/src/tests/storePerfTools/asyncPerf/MockPersistableQueue.cpp
+++ b/cpp/src/tests/storePerfTools/asyncPerf/MockPersistableQueue.cpp
@@ -323,7 +323,7 @@ void
MockPersistableQueue::pop(QueuedMessagePtr& qm)
{
qpid::sys::ScopedLock<qpid::sys::Mutex> l(m_enqueuedMsgsMutex);
- if (m_enqueuedMsgs.empty()) {
+ while (m_enqueuedMsgs.empty()) {
m_dequeueCondition.wait(m_enqueuedMsgsMutex);
}
qm = m_enqueuedMsgs.front();