From 8f6e48cd4aaefa12c0a5cbd6cc17f8649396bdf6 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 21 Feb 2012 13:40:43 +0100 Subject: [PATCH] platform: fixed accidental double deref. the method parameter already does that. closes #24 --- src/lib/platform/threads/mutex.h | 12 ++++++------ src/lib/platform/threads/threads.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib/platform/threads/mutex.h b/src/lib/platform/threads/mutex.h index 6bd126e..ed60ba8 100644 --- a/src/lib/platform/threads/mutex.h +++ b/src/lib/platform/threads/mutex.h @@ -343,11 +343,11 @@ namespace PLATFORM return bReturn; } - volatile bool m_bSignaled; - CCondition m_condition; - CMutex m_mutex; - volatile bool m_bBroadcast; - unsigned int m_iWaitingThreads; - bool m_bAutoReset; + volatile bool m_bSignaled; + CCondition m_condition; + CMutex m_mutex; + volatile bool m_bBroadcast; + unsigned int m_iWaitingThreads; + bool m_bAutoReset; }; } diff --git a/src/lib/platform/threads/threads.h b/src/lib/platform/threads/threads.h index f2de310..0efebdc 100644 --- a/src/lib/platform/threads/threads.h +++ b/src/lib/platform/threads/threads.h @@ -133,11 +133,11 @@ namespace PLATFORM void SetRunning(bool bSetTo); private: - bool m_bStop; - bool m_bRunning; - bool m_bStopped; - CCondition m_threadCondition; - CMutex m_threadMutex; - thread_t m_thread; + bool m_bStop; + bool m_bRunning; + bool m_bStopped; + CCondition m_threadCondition; + CMutex m_threadMutex; + thread_t m_thread; }; }; -- 2.34.1