From: Chris Tallon Date: Wed, 10 Sep 2008 16:33:57 +0000 (+0000) Subject: Fix a timers thread locking bug X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=ec0035c223e24ee1429132b415a3b4329636f9e2;p=vompclient-marten.git Fix a timers thread locking bug --- 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) {