Git commit 0a5f17310818a3fdecf299a382b0343b6462243d by Nicolás Alvarez, on behalf of Christoph Thielecke. Committed on 05/02/2011 at 15:52. Pushed by nalvarez into branch '1.2'. calling PTHREAD_MUTEX_INITIALIZER is not nessary because pthread_mutex_init() does the work, also it causes compile error on some systems (cherry picked from commit 7d8c4d89b981680b77d547c7a2e2b64a56b2b098) M +2 -1 interfaces/foregroundlock.cpp http://commits.kde.org/kdevplatform/0a5f17310818a3fdecf299a382b0343b6462243d diff --git a/interfaces/foregroundlock.cpp b/interfaces/foregroundlock.cpp index d0c1ec3..a3f4287 100644 --- a/interfaces/foregroundlock.cpp +++ b/interfaces/foregroundlock.cpp @@ -35,7 +35,8 @@ using namespace KDevelop; class SimplePThreadMutex { public: SimplePThreadMutex() { - m_mutex = PTHREAD_MUTEX_INITIALIZER; + // this is not nessary because pthread_mutex_init() does the work, also it causes compile error on some systems + //m_mutex = PTHREAD_MUTEX_INITIALIZER; int result = pthread_mutex_init(&m_mutex, 0); Q_ASSERT(result == 0); }