cec: add a bRecursive parameter to the constructor of CMutex
[deb_libcec.git] / src / lib / platform / threads.h
index 4161de3261b12d68d7c4c137dc923ab1281db404..a258081ccef8bbdf6a5bc8f33826fbaf26ae6c84 100644 (file)
@@ -56,7 +56,7 @@ namespace CEC
   class CMutex
   {
   public:
-    CMutex(void);
+    CMutex(bool bRecursive = true);
     virtual ~CMutex(void);
 
     bool TryLock(void);
@@ -64,6 +64,9 @@ namespace CEC
     void Unlock(void);
 
     pthread_mutex_t m_mutex;
+
+  private:
+    static pthread_mutexattr_t *GetMutexAttribute();
   };
 
   class CLockObject