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: submit/tizen/20220114.063030~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=122bae587fb3d4d1879f567baa97b72bdd6a1a5a;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 --- diff --git a/src/common/filesystem/filesystem_provider_deviced.cc b/src/common/filesystem/filesystem_provider_deviced.cc index 60bc109..3fd71bc 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; }