Revert "Use thread_local (instead of static) storage duration due to thread safety... 19/272319/1
authorDongHyun Song <dh81.song@samsung.com>
Mon, 14 Mar 2022 02:06:39 +0000 (02:06 +0000)
committerPiotr Kosko <p.kosko@samsung.com>
Mon, 14 Mar 2022 12:51:58 +0000 (12:51 +0000)
This reverts commit 122bae587fb3d4d1879f567baa97b72bdd6a1a5a.

Change-Id: Ic2ff664d602044b400c48063285039ded3472af9
(cherry picked from commit de39ed39f8e75afb9718f242069614646d08c26c)

src/common/filesystem/filesystem_provider_deviced.cc

index 3fd71bc..60bc109 100644 (file)
@@ -146,7 +146,7 @@ FilesystemProviderDeviced::FilesystemProviderDeviced()
 FilesystemProviderDeviced& FilesystemProviderDeviced::Create() {
   ScopeLogger();
 
-  thread_local FilesystemProviderDeviced instance;
+  static FilesystemProviderDeviced instance;
 
   return instance;
 }