Remove locking in crash annotations.

We removed ffmpeg crash annotations so now all are from main thread.
This commit is contained in:
John Preston 2017-12-02 13:28:15 +04:00
parent a495de7cf8
commit 0a1165dac9

View file

@ -631,7 +631,6 @@ namespace internal {
using Annotations = std::map<std::string, std::string>;
using AnnotationRefs = std::map<std::string, const QString*>;
std::mutex ProcessAnnotationsMutex;
Annotations ProcessAnnotations;
AnnotationRefs ProcessAnnotationRefs;
@ -1127,7 +1126,6 @@ namespace internal {
}
void setCrashAnnotation(const std::string &key, const QString &value) {
std::unique_lock<std::mutex> lock(internal::ProcessAnnotationsMutex);
if (!value.trimmed().isEmpty()) {
internal::ProcessAnnotations[key] = value.toUtf8().constData();
} else {
@ -1136,7 +1134,6 @@ namespace internal {
}
void setCrashAnnotationRef(const std::string &key, const QString *valuePtr) {
std::unique_lock<std::mutex> lock(internal::ProcessAnnotationsMutex);
if (valuePtr) {
internal::ProcessAnnotationRefs[key] = valuePtr;
} else {