QtConcurrent: Remove QMutex kept for BC reasons.
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Thu, 24 May 2012 08:12:19 +0000 (10:12 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 May 2012 23:54:45 +0000 (01:54 +0200)
Task-number: QTBUG-25052

Since upgrading to Qt 5 forces a recompile there
are no longer inline versions of the acquire/release
functions in play.

Change-Id: I6ce6abe0f16f810891f32c7e8c5c94726e5de873
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/concurrent/qtconcurrentthreadengine.h

index 3ecdc84..9d8f2dd 100644 (file)
@@ -72,11 +72,7 @@ private:
     // variable. The count can be either positive or negative - a negative
     // count signals that a thread is waiting on the barrier.
 
-    // BC note: inlined code from Qt < 4.6 will expect to find the QMutex 
-    // and QAtomicInt here. ### Qt 5: remove.
-    QMutex mutex;
     QAtomicInt count;
-
     QSemaphore semaphore;
 public:
     ThreadEngineBarrier();