get rid of the big lock -> nothing uses it and it's just asking for a crash-due-to-deletion

This commit is contained in:
Aaron Seigo 2011-11-14 10:33:00 +01:00
parent 819fdf5f23
commit aad3d107b4
2 changed files with 0 additions and 21 deletions

View File

@ -43,8 +43,6 @@
namespace Plasma
{
K_GLOBAL_STATIC(QMutex, s_bigLock)
AbstractRunner::AbstractRunner(QObject *parent, const QString &path)
: QObject(parent),
d(new AbstractRunnerPrivate(this))
@ -271,11 +269,6 @@ void AbstractRunner::setIgnoredTypes(RunnerContext::Types types)
d->blackListed = types;
}
QMutex* AbstractRunner::bigLock()
{
return s_bigLock;
}
void AbstractRunner::run(const Plasma::RunnerContext &search, const Plasma::QueryMatch &action)
{
if (d->script) {

View File

@ -237,20 +237,6 @@ class PLASMA_EXPORT AbstractRunner : public QObject
*/
QList<RunnerSyntax> syntaxes() const;
/**
* Access to a shared lock that all runners (and code that manages/interacts with them)
* can share to protect access to non-thread-safe shared code or data.
* Access of KSycoca records, for instance, is one place this lock should be used.
*
* Common usage:
*
* {
* QMutexLocker lock(bigLock());
* .. do something that isn't thread safe ..
* }
*/
static QMutex *bigLock();
/**
* @return the default syntax for the runner or 0 if no default syntax has been defined
*