Sentry: use locked contexts to send data to avoid races

This commit is contained in:
Lion Kortlepel authored and Lion committed 2021-09-08 19:55:03 +03:00
1 parent 51e662fdda
commit 1409d4ef80
5 files changed
+9 -1

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ public:
void AddErrorBreadcrumb(const std::string& msg, const std::string& file, const std::string& line);
// cleared when Logged
void SetTransaction(const std::string& id);
[[nodiscard]] std::unique_lock<std::mutex> CreateExclusiveContext();
private:
bool mValid { true };