From 122bae587fb3d4d1879f567baa97b72bdd6a1a5a Mon Sep 17 00:00:00 2001 From: Marcin Bialek Date: Mon, 8 Nov 2021 13:19:28 +0100 Subject: [PATCH] Use thread_local (instead of static) storage duration due to thread safety issue. Similar issue: 605574a932c7ddac63bb394d520178d332ed05dc [Verification] TCT tests and a sample application. Change-Id: I988fb82763999751ce56d77847013506fea5875c --- src/common/filesystem/filesystem_provider_deviced.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filesystem/filesystem_provider_deviced.cc b/src/common/filesystem/filesystem_provider_deviced.cc index 60bc1090..3fd71bc6 100644 --- a/src/common/filesystem/filesystem_provider_deviced.cc +++ b/src/common/filesystem/filesystem_provider_deviced.cc @@ -146,7 +146,7 @@ FilesystemProviderDeviced::FilesystemProviderDeviced() FilesystemProviderDeviced& FilesystemProviderDeviced::Create() { ScopeLogger(); - static FilesystemProviderDeviced instance; + thread_local FilesystemProviderDeviced instance; return instance; } -- 2.34.1