From: Marcin Bialek Date: Mon, 8 Nov 2021 12:19:28 +0000 (+0100) Subject: Use thread_local (instead of static) storage duration due to thread safety issue. X-Git-Tag: accepted/tizen/6.5/unified/20230621.125857~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F71%2F272171%2F1;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git 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 (cherry picked from commit 122bae587fb3d4d1879f567baa97b72bdd6a1a5a) --- 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; }