Add mutex in DBHandler 59/255559/4
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 19 Mar 2021 07:35:44 +0000 (16:35 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Tue, 23 Mar 2021 00:18:46 +0000 (00:18 +0000)
commitf610100449852c58f3ddd6e7ca11a83483689886
tree28904985857af05a8ac158039052ec046b6409d9
parent2ee612ac27a26a1f540775e080cd12f8057f378b
Add mutex in DBHandler

Add shared_mutex in DBHandler.
When it received get request, then use shared_lock.
So multiple thread is accessible.
On the other hand, when be received set request,
it use unique_lock.

Change-Id: Ifbf02d50713479d26372adaa4ad4772a030be2ef
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/common/database/abstract_db_handler.cc
src/common/database/abstract_db_handler.hh
src/common/database/appinfo_db_handler.cc
src/common/database/cert_get_db_handler.cc
src/common/database/cert_set_db_handler.cc
src/common/database/db_handle_provider.hh
src/common/database/depinfo_db_handler.cc
src/common/database/pkg_get_db_handler.cc
src/common/database/pkg_set_db_handler.cc
src/common/database/query_handler.cc