X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fthreads%2Fthreads.h;h=e29578c728a1b5b0abf5288b5898615433fb6498;hb=466925f5c43536e5fd96632615810da783b78096;hp=0cc07eee883f6646e98bd65b6cfb601f5d8c1c96;hpb=ce37a9b17b1eee6488f6d3cdba534d5da71c3ea4;p=deb_libcec.git diff --git a/src/lib/platform/threads/threads.h b/src/lib/platform/threads/threads.h index 0cc07ee..e29578c 100644 --- a/src/lib/platform/threads/threads.h +++ b/src/lib/platform/threads/threads.h @@ -48,7 +48,9 @@ namespace PLATFORM StopThread(0); void *retVal; ThreadsWait(m_thread, &retVal); + #if defined(__WINDOWS__) (void *)retVal; //"unreferenced local variable" warning + #endif } static void *ThreadHandler(CThread *thread) @@ -143,13 +145,13 @@ namespace PLATFORM protected: void SetRunning(bool bSetTo); + CMutex m_threadMutex; private: bool m_bStop; bool m_bRunning; bool m_bStopped; CCondition m_threadCondition; - CMutex m_threadMutex; thread_t m_thread; }; };