mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
lock QFactoryLoader on write instead of read
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
66bb5f237c
commit
92e2ca32b5
1 changed files with 1 additions and 1 deletions
|
@ -185,6 +185,7 @@ void QFactoryLoader::updateDir(const QString &pluginDir)
|
|||
void QFactoryLoader::update()
|
||||
{
|
||||
Q_D(QFactoryLoader);
|
||||
QMutexLocker locker(&d->mutex);
|
||||
foreach (const QString &pluginDir, QCoreApplication::libraryPaths()) {
|
||||
// Already loaded, skip it...
|
||||
if (d->loadedPaths.contains(pluginDir))
|
||||
|
@ -203,7 +204,6 @@ QFactoryLoader::~QFactoryLoader()
|
|||
QStringList QFactoryLoader::keys() const
|
||||
{
|
||||
Q_D(const QFactoryLoader);
|
||||
QMutexLocker locker(&d->mutex);
|
||||
return d->keyList;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue