Make class for managing vc_config_s instance 03/286203/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 1 Dec 2022 09:54:49 +0000 (18:54 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Fri, 30 Dec 2022 04:37:49 +0000 (13:37 +0900)
commit6b347e678bb94d999fd50f6503a4493844586641
tree48546649dba0dd46d0a2402b2233069a0a5a67dc
parent2273186f65d4fa7e515f30882bbf3d1e20041964
Make class for managing vc_config_s instance

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

- Contents:
This patch makes new class for accessing vc_config_s instance. Through
this patch, all other functions in this module can access configuration
property in a thread safe way using method of new class.
This new class will protect vc_config_s property using mutex, so the
class will assure to prevent race condition.

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