X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fthreads%2Fthreads.h;h=8fb71fce2b2158382168379054d30750b1e0c4dc;hb=c12ee8e65c67f6435fba0a09cbea363b13f6c56d;hp=4d6f729090ee4799fb9b075b8aba8319e807bff0;hpb=b492c10e731625d7c000654de2372b54339f7c8d;p=deb_libcec.git 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);