Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
digiKam
Commits
f8345978
Commit
f8345978
authored
Jan 12, 2013
by
Marcel Wiesweg
Browse files
Use a read lock when computing the file hash
parent
729399dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/dimg/dimg.cpp
View file @
f8345978
...
...
@@ -2827,6 +2827,7 @@ QByteArray DImg::getUniqueHash() const
return
QByteArray
();
}
FileReadLocker
lock
(
filePath
);
QByteArray
hash
=
DImgLoader
::
uniqueHash
(
filePath
,
*
this
,
false
);
// attribute is written by DImgLoader
...
...
@@ -2859,6 +2860,7 @@ QByteArray DImg::getUniqueHashV2() const
return
QByteArray
();
}
FileReadLocker
lock
(
filePath
);
return
DImgLoader
::
uniqueHashV2
(
filePath
,
this
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment