Add mutex for set repeat text 75/284375/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 16 Nov 2022 11:11:19 +0000 (20:11 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 16 Nov 2022 11:11:19 +0000 (20:11 +0900)
commite6ccceb2d7a26dc167d2fc51c20a0c173e98beca
tree7511ec8a3343fc3b1127c0f520cc40a2347e52db
parent6cd59da3b299299fa081e8cb306de95afdbcc807
Add mutex for set repeat text

- Issue:
Sometimes, invalid access occurs if app tries to add text in multi
thread enviroment.

- Solution:
App can add text frequently. And also, app can add text in multi thread
enviroment. However, the text_repeat property of client is not safe in
multi thread enviroment. Thus, this patch adds mutex lock for protect
text_repeat from race condition. Through this patch, app can be add text
safely in multi thread.

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