[Tts/Stt] Use thread lock only when add and remove event handler (#2782)
authorSuyeon Hwang <35016426+stom-hwang@users.noreply.github.com>
Thu, 25 Mar 2021 01:51:25 +0000 (10:51 +0900)
committerGitHub <noreply@github.com>
Thu, 25 Mar 2021 01:51:25 +0000 (10:51 +0900)
commit65afbc92cb78cf0b08c6e038c1fbc3f5754ee13d
treeee8fbb525c9f926f5c27e0f6013764004f4fe5a7
parent1909fdad0f2b14c4dafaffe56212d6e121234bae
[Tts/Stt] Use thread lock only when add and remove event handler (#2782)

* [Tts] Use thread lock only when add and remove event handler

Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
* [Stt] Use thread lock only when add and remove event handler

Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
* [Tts/Stt] Remove useless thread lock statements

null conditional operator already guarantees the thread safety.
So it does not need additional thread lock.

Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
src/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs
src/Tizen.Uix.Tts/Tizen.Uix.Tts/TtsClient.cs