From: sooyeon Date: Fri, 17 Dec 2021 16:03:50 +0000 (+0900) Subject: Add thread_wait to wait g_reprepare_thread is terminated X-Git-Tag: submit/tizen_6.5/20211223.020506~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6a0f86306b7d1c322ef0ef00bba6d581b423af1;p=platform%2Fcore%2Fuifw%2Ftts.git Add thread_wait to wait g_reprepare_thread is terminated Change-Id: Icabe75f263144ba51c03487d2e918e4d6529547d Signed-off-by: sooyeon --- diff --git a/client/tts_core.c b/client/tts_core.c index d529b86a..97ecdd08 100644 --- a/client/tts_core.c +++ b/client/tts_core.c @@ -685,6 +685,7 @@ int tts_core_deinitialize() if (NULL != g_reprepare_thread && EINA_FALSE == ecore_thread_check(g_reprepare_thread)) { SLOG(LOG_INFO, TAG_TTSC, "[INFO] Cancel reprepare thread"); ecore_thread_cancel(g_reprepare_thread); + ecore_thread_wait(g_reprepare_thread, 0.5); // wait g_reprepare_thread is terminated. } if (NULL != g_pkgmgr_thread) {