[M120][WRTjs] Fix ApplicationData instance thread safety issue 21/305421/5
authorzhaosy <shiyusy.zhao@samsung.com>
Fri, 5 Jan 2024 05:08:58 +0000 (13:08 +0800)
committerDongHyun Song <dh81.song@samsung.com>
Fri, 2 Feb 2024 09:44:03 +0000 (09:44 +0000)
commit945360a9e3840da178d4fd6ca974e83e1bd96882
treec992f2f188aaa44b1bffa2d01c9906169de06cf6
parent8f30d3c807b7283c55bc304c35dfac2adaf4a27d
[M120][WRTjs] Fix ApplicationData instance thread safety issue

When app is launched, ApplicationData instance maybe is created
by multi-threads(main thread, prelaunch worker, reallaunch worker)
at the same time.
So add lock in ApplicationData::GetInstance.

Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/304102/

Change-Id: I883711947700e3cc973f2ad2ce4deee989708517
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt/src/common/application_data.cc [changed mode: 0644->0755]