[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.3/kdebase/workspace/plasma/runners/services
From:       Jacopo De Simoi <wilderkde () gmail ! com>
Date:       2009-09-10 14:27:10
Message-ID: 1252592830.541742.21501.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1022002 by jacopods:

KTraderParse is not thread safe in 4.3 - welcome back bigLock()
CCBUG: 192536
CCMAIL: pino@kde.org



 M  +5 -1      servicerunner.cpp  


--- branches/KDE/4.3/kdebase/workspace/plasma/runners/services/servicerunner.cpp #1022001:1022002
@@ -19,8 +19,9 @@
 #include "servicerunner.h"
 
 #include <QWidget>
+#include <QMutexLocker>
+
 #include <KIcon>
-
 #include <KDebug>
 #include <KLocale>
 #include <KRun>
@@ -49,6 +50,9 @@
         return;
     }
 
+    // KServiceTypeTrader::query() is not thread-safe in 4.3, welcome back bigLock
+    QMutexLocker lock(bigLock());
+
     // Search for applications which are executable and case-insensitively match the search term
     // See http://techbase.kde.org/Development/Tutorials/Services/Traders#The_KTrader_Query_Language
     // if the following is unclear to you.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic