From: Lars Op den Kamp Date: Mon, 23 Apr 2012 09:18:45 +0000 (+0200) Subject: cosmetics X-Git-Tag: upstream/2.2.0~1^2~29^2^2~68 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ce37a9b17b1eee6488f6d3cdba534d5da71c3ea4;p=deb_libcec.git cosmetics --- diff --git a/src/lib/platform/threads/threads.h b/src/lib/platform/threads/threads.h index b5ccf38..0cc07ee 100644 --- a/src/lib/platform/threads/threads.h +++ b/src/lib/platform/threads/threads.h @@ -91,18 +91,18 @@ namespace PLATFORM virtual bool CreateThread(bool bWait = true) { - bool bReturn(false); - CLockObject lock(m_threadMutex); - if (!IsRunning()) + bool bReturn(false); + CLockObject lock(m_threadMutex); + if (!IsRunning()) + { + m_bStop = false; + if (ThreadsCreate(m_thread, CThread::ThreadHandler, ((void*)static_cast(this)))) { - m_bStop = false; - if (ThreadsCreate(m_thread, CThread::ThreadHandler, ((void*)static_cast(this)))) - { - if (bWait) - m_threadCondition.Wait(m_threadMutex, m_bRunning); - bReturn = true; - } + if (bWait) + m_threadCondition.Wait(m_threadMutex, m_bRunning); + bReturn = true; } + } return bReturn; }