[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bkdevplatform/1=2E2=5D_interfaces=3A_calling_PTHREAD?=
From: Nicolás_Alvarez <nicolas.alvarez () gmail ! com>
Date: 2011-05-31 22:56:12
Message-ID: 20110531225612.35C99A60A4 () git ! kde ! org
[Download RAW message or body]
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);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic