From ec0035c223e24ee1429132b415a3b4329636f9e2 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Wed, 10 Sep 2008 16:33:57 +0000 Subject: [PATCH] Fix a timers thread locking bug --- timers.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/timers.cc b/timers.cc index 3c43e08..b9bb844 100755 --- a/timers.cc +++ b/timers.cc @@ -49,7 +49,6 @@ int Timers::init() initted = true; logger = Log::getInstance(); - threadLock(); // lock here, the thread loop will unlock and wait if (!threadStart()) { shutdown(); @@ -319,7 +318,7 @@ void Timers::threadMethod() TimerEvent* nextTimer = NULL; resetThreadFlag = true; - // locked here + threadLock(); while(1) { -- 2.39.5