From c12ee8e65c67f6435fba0a09cbea363b13f6c56d Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Mon, 6 Feb 2012 11:14:44 +0100 Subject: [PATCH] cec: thread methods should be virtual, not inline. fixes access violation on win32 --- src/lib/platform/threads/threads.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.34.1