Commit da81ad93 authored by Milian Wolff's avatar Milian Wolff
Browse files

Reuse modificationRevisionSetMutex for FileModificationSetRepository

All code paths that use this set repository already lock the mutex,
so there's no need to lock a second mutex on top.
parent 76b4acfa
......@@ -119,8 +119,8 @@ void ModificationRevisionSet::clearCache()
struct FileModificationSetRepository
: public Utils::BasicSetRepository
FileModificationSetRepository(QMutex *mutex)
: Utils::BasicSetRepository(QStringLiteral("file modification sets"), mutex,
: Utils::BasicSetRepository(QStringLiteral("file modification sets"), &modificationRevisionSetMutex,
&globalItemRepositoryRegistry(), true)
......@@ -133,8 +133,7 @@ struct FileModificationSetRepositoryRepresenter
static FileModificationSetRepository& repository()
static QMutex mutex(QMutex::Recursive);
static FileModificationSetRepository fileModificationSetRepository(&mutex);
static FileModificationSetRepository fileModificationSetRepository;
return fileModificationSetRepository;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment