This change is to prevent issues with accessing same TaskQueue object by
several threads in multi-thread service model introduced in Tizen 6.5.
Similar change -
https://review.tizen.org/gerrit/#/c/platform/core/api/webapi-plugins/+/263367/
[Verification] executed all automatic TCT - 100% passrate.
Change-Id: I0c8ac1d7ffe1a9fad08eda6e2129abf659cbe9db
namespace common {
TaskQueue& TaskQueue::GetInstance() {
namespace common {
TaskQueue& TaskQueue::GetInstance() {
- static TaskQueue task_queue;
+ thread_local TaskQueue task_queue;