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:
parent
819fdf5f23
commit
aad3d107b4
@ -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) {
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user