From: Lars Op den Kamp Date: Mon, 6 Feb 2012 10:14:44 +0000 (+0100) Subject: cec: thread methods should be virtual, not inline. fixes access violation on win32 X-Git-Tag: upstream/2.2.0~1^2~36^2~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c12ee8e65c67f6435fba0a09cbea363b13f6c56d;p=deb_libcec.git cec: thread methods should be virtual, not inline. fixes access violation on win32 --- diff --git a/src/lib/platform/threads/threads.h b/src/lib/platform/threads/threads.h index 4d6f729..8fb71fc 100644 --- a/src/lib/platform/threads/threads.h +++ b/src/lib/platform/threads/threads.h @@ -69,19 +69,19 @@ namespace PLATFORM return retVal; } - inline bool IsRunning(void) + virtual bool IsRunning(void) { CLockObject lock(m_threadMutex); return m_bRunning; } - inline bool IsStopped(void) + virtual bool IsStopped(void) { CLockObject lock(m_threadMutex); return m_bStop; } - inline bool CreateThread(bool bWait = true) + virtual bool CreateThread(bool bWait = true) { bool bReturn(false); CLockObject lock(m_threadMutex); @@ -98,7 +98,7 @@ namespace PLATFORM return bReturn; } - inline bool StopThread(bool bWaitForExit = true) + virtual bool StopThread(bool bWaitForExit = true) { bool bReturn(true); bool bRunning(false); @@ -117,7 +117,7 @@ namespace PLATFORM return true; } - inline bool Sleep(uint32_t iTimeout) + virtual bool Sleep(uint32_t iTimeout) { CLockObject lock(m_threadMutex); return m_bStop ? false : m_threadCondition.Wait(m_threadMutex, iTimeout);