From d80112d4976b7f44a3fd7b6f85636d44c70401fb Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Fri, 18 Apr 2008 12:09:42 +0000 Subject: Fix to prevent possible Timer deadlocks by holding onto mutex while calling fire() git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@649479 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Timer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/Timer.cpp b/cpp/src/qpid/broker/Timer.cpp index 9005a7cd6e..0b0d3ba63d 100644 --- a/cpp/src/qpid/broker/Timer.cpp +++ b/cpp/src/qpid/broker/Timer.cpp @@ -60,6 +60,7 @@ void Timer::run() tasks.pop(); } else if(t->time < AbsTime::now()) { tasks.pop(); + Monitor::ScopedUnlock u(monitor); t->fire(); } else { monitor.wait(t->time); -- cgit v1.2.1