Add mutex lock for global variables in tts_client 09/231109/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Fri, 17 Apr 2020 08:23:50 +0000 (17:23 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 9 Jul 2020 09:03:27 +0000 (18:03 +0900)
commit1ec7dcbf00714896f738c92cbf89693a880032cf
treefa26032c78a2b9b882d4b8f7a03ac8c6956d91aa
parenta0eb526cd56b5cc95cdab55db46e0b4b5f74a4d8
Add mutex lock for global variables in tts_client

Global varaibles, g_client_list and g_allocated_handle, can occur thread safety issue, because
any threads can access these variables.

This patch makes mutex lock for these variables to avoid thread safety issue.

Change-Id: I7ce1adf0c625715b619573d130408f0924da9785
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/tts_client.c