Make class for managing g_config_client_list 05/286205/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 7 Dec 2022 02:21:09 +0000 (11:21 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Fri, 30 Dec 2022 04:37:57 +0000 (13:37 +0900)
commit494c821864ad8a8904daba91c145a78852f237c1
tree0a6bc97f8b8e4b0c2c137dd497515bede2a7f31f
parent4b865f96753413e446f12350544f9df4dae91012
Make class for managing g_config_client_list

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

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

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