]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Switched back from recursive to non-recursive reader-writer lock because Qt4.3 does...
authorBart Van Assche <bvanassche@acm.org>
Tue, 8 Jul 2008 08:51:51 +0000 (08:51 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 8 Jul 2008 08:51:51 +0000 (08:51 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8395

drd/tests/qt4_rwlock.cpp

index e9cc5cafdac6bea4b8a5c5815c5d43882ff0c026..6001d192795cb1d4b4b0a0f0f5bbd38f03e1e71c 100644 (file)
@@ -49,14 +49,10 @@ int main(int argc, char** argv)
 
   {
     // Stack-allocated reader-writer lock.
-    QReadWriteLock RWL(QReadWriteLock::Recursive);
+    QReadWriteLock RWL;
     RWL.lockForRead();
-    RWL.lockForRead();
-    RWL.unlock();
     RWL.unlock();
     RWL.lockForWrite();
-    RWL.lockForWrite();
-    RWL.unlock();
     RWL.unlock();
   }