mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-30 15:30:20 +00:00
Remove locking in crash annotations.
We removed ffmpeg crash annotations so now all are from main thread.
This commit is contained in:
parent
a495de7cf8
commit
0a1165dac9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user