Make class for managing list of vc_engine_info_s 04/286204/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 6 Dec 2022 07:35:41 +0000 (16:35 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Fri, 30 Dec 2022 04:37:53 +0000 (13:37 +0900)
commit4b865f96753413e446f12350544f9df4dae91012
treef2ebd699a3ebb150ed9d32f56354c586a3ce6a43
parent6b347e678bb94d999fd50f6503a4493844586641
Make class for managing list of vc_engine_info_s

- Requirement:
g_engine_list is shared memory, so thread safe access for g_engine_list
is needed.

- Contents:
This patch makes new classes for accessing list of vc_engine_info_s
instances. Through this patch, all other functions in this module can
access list of vc_engine_info_s instances in a thread safe way using new
class iinstance introduced by this patch.
This new class will protect each engine information element using mutex,
so the class will assure to prevent race condition.

Change-Id: I455a5effb5076119be220936fd26a27143e72081
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/CMakeLists.txt
common/VoiceControlEngineInfo.cpp [new file with mode: 0644]
common/VoiceControlEngineInfo.h [new file with mode: 0644]
common/VoiceControlEngines.cpp [new file with mode: 0644]
common/VoiceControlEngines.h [new file with mode: 0644]
common/vc_config_mgr.cpp
server/CMakeLists.txt