}
usleep(10000);
+ /* Checking the thread is canceled or not */
+ if (ecore_thread_check(g_pkgmgr_thread)) {
+ SLOG(LOG_WARN, TAG_TTSC, "[WARNING] g_pkgmgr_thread is canceled. Exit");
+ break;
+ }
+
/* Checking handle which can be destroyed on other thread */
if (false == tts_client_is_valid(tts)) {
SLOG(LOG_INFO, TAG_TTSC, "[INFO] client is already destroyed");
usleep(50000);
cnt++;
+
+ /* Checking thread is canceled or not */
+ if (ecore_thread_check(client->thread)) {
+ SLOG(LOG_WARN, TAG_TTSC, "[WARNING] client thread is canceled. Exit");
+ return;
+ }
}
SLOG(LOG_ERROR, TAG_TTSC, "[DEBUG] update status(%d)", g_engine_update_status);
}
usleep(200000);
+
+ /* Checking thread is canceled or not */
+ if (ecore_thread_check(client->thread)) {
+ SLOG(LOG_WARN, TAG_TTSC, "[WARNING] client thread is canceled. Exit");
+ return;
+ }
}
SLOG(LOG_INFO, TAG_TTSC, "[INFO] finish updating. request to prepare");