platform: fixed accidental double deref. the method parameter already does that....
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 21 Feb 2012 12:40:43 +0000 (13:40 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 21 Feb 2012 12:40:43 +0000 (13:40 +0100)
src/lib/platform/threads/mutex.h
src/lib/platform/threads/threads.h

index 6bd126e4c7452b1658e285386e5dd0f106917700..ed60ba8724612fae369e1fd7e9e33ede7877e97e 100644 (file)
@@ -343,11 +343,11 @@ namespace PLATFORM
       return bReturn;
     }
 
-    volatile bool              m_bSignaled;
-    CCondition<volatile bool&> m_condition;
-    CMutex                     m_mutex;
-    volatile bool              m_bBroadcast;
-    unsigned int               m_iWaitingThreads;
-    bool                       m_bAutoReset;
+    volatile bool             m_bSignaled;
+    CCondition<volatile bool> m_condition;
+    CMutex                    m_mutex;
+    volatile bool             m_bBroadcast;
+    unsigned int              m_iWaitingThreads;
+    bool                      m_bAutoReset;
   };
 }
index f2de310a23749f7960ef3882008c61e317c5eeb9..0efebdc2c0b47e14df475846e4f65ff92aa15dd1 100644 (file)
@@ -133,11 +133,11 @@ namespace PLATFORM
     void SetRunning(bool bSetTo);
 
   private:
-    bool               m_bStop;
-    bool               m_bRunning;
-    bool               m_bStopped;
-    CCondition<bool &> m_threadCondition;
-    CMutex             m_threadMutex;
-    thread_t           m_thread;
+    bool             m_bStop;
+    bool             m_bRunning;
+    bool             m_bStopped;
+    CCondition<bool> m_threadCondition;
+    CMutex           m_threadMutex;
+    thread_t         m_thread;
   };
 };