Sentry: use locked contexts to send data to avoid races

This commit is contained in:
Lion Kortlepel
2021-08-10 12:28:06 +02:00
committed by Lion
parent 51e662fdda
commit 1409d4ef80
5 changed files with 9 additions and 1 deletions

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 };