diff options
author | Andrew Stitcher <astitcher@apache.org> | 2011-04-12 21:07:40 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2011-04-12 21:07:40 +0000 |
commit | ffc032fff98008ac58413c9af696cea089a1f01c (patch) | |
tree | 6cfcba9299a3e456b9cc14376fc30536db444bb9 | |
parent | 35f3c1f5fd60abe6088c365255d7e5e5e721b242 (diff) | |
download | qpid-python-ffc032fff98008ac58413c9af696cea089a1f01c.tar.gz |
QPID-3199: Locking error qpid::sys::StateMonitor
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.10@1091571 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/qpid/sys/StateMonitor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/src/qpid/sys/StateMonitor.h b/qpid/cpp/src/qpid/sys/StateMonitor.h index 5a92756f3a..b74195fb8d 100644 --- a/qpid/cpp/src/qpid/sys/StateMonitor.h +++ b/qpid/cpp/src/qpid/sys/StateMonitor.h @@ -60,13 +60,13 @@ class StateMonitor : public Waitable operator Enum() const { return state; } /** @pre Caller holds a ScopedLock */ - void waitFor(Enum s) { ScopedWait(*this); while (s != state) wait(); } + void waitFor(Enum s) { ScopedWait w(*this); while (s != state) wait(); } /** @pre Caller holds a ScopedLock */ - void waitFor(Set s) { ScopedWait(*this); while (!s.test(state)) wait(); } + void waitFor(Set s) { ScopedWait w(*this); while (!s.test(state)) wait(); } /** @pre Caller holds a ScopedLock */ - void waitNot(Enum s) { ScopedWait(*this); while (s == state) wait(); } + void waitNot(Enum s) { ScopedWait w(*this); while (s == state) wait(); } /** @pre Caller holds a ScopedLock */ - void waitNot(Set s) { ScopedWait(*this); while (s.test(state)) wait(); } + void waitNot(Set s) { ScopedWait w(*this); while (s.test(state)) wait(); } private: Enum state; |