From 0a1165dac9f0f51ca2c839faca4c473f662db1ca Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 2 Dec 2017 13:28:15 +0400 Subject: [PATCH] Remove locking in crash annotations. We removed ffmpeg crash annotations so now all are from main thread. --- Telegram/SourceFiles/logs.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp index 92a92b179..cf7084ea9 100644 --- a/Telegram/SourceFiles/logs.cpp +++ b/Telegram/SourceFiles/logs.cpp @@ -631,7 +631,6 @@ namespace internal { using Annotations = std::map; using AnnotationRefs = std::map; - 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 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 lock(internal::ProcessAnnotationsMutex); if (valuePtr) { internal::ProcessAnnotationRefs[key] = valuePtr; } else {