Revert "Use thread_local (instead of static) storage duration due to thread safety... 68/272268/1
authorDongHyun Song <dh81.song@samsung.com>
Mon, 14 Mar 2022 02:06:39 +0000 (02:06 +0000)
committerDongHyun Song <dh81.song@samsung.com>
Mon, 14 Mar 2022 02:06:39 +0000 (02:06 +0000)
This reverts commit 122bae587fb3d4d1879f567baa97b72bdd6a1a5a.

Change-Id: Ic2ff664d602044b400c48063285039ded3472af9

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