From: sooyeon Date: Wed, 20 Apr 2022 16:10:17 +0000 (+0900) Subject: Use ecore_thread_feedback_run() to make the priority of the thread higher X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5025ffbc2bf44e2fe98d5c3c2d480a057c612a5e;p=platform%2Fcore%2Fuifw%2Ftts.git Use ecore_thread_feedback_run() to make the priority of the thread higher Change-Id: I03e1a60129d7cf9e3761643b40d6d2b33662ef60 Signed-off-by: sooyeon --- diff --git a/server/ttsd_player.c b/server/ttsd_player.c index 5e410e3e..a8f3c9ee 100644 --- a/server/ttsd_player.c +++ b/server/ttsd_player.c @@ -952,6 +952,11 @@ static void __play_thread(void *data, Ecore_Thread *thread) } // end of 1st while(1) } +static void __notify_thread(void *data, Ecore_Thread *thread, void *msg) +{ + SLOG(LOG_ERROR, tts_tag(), "@@@ Notify thread"); +} + int __create_ducking_handle(void) { int ret = -1; @@ -1272,7 +1277,7 @@ int ttsd_player_play(unsigned int uid) SLOG(LOG_INFO, tts_tag(), "[Player DEBUG] Active thread count : %d", ecore_thread_active_get()); SLOG(LOG_INFO, tts_tag(), "[Player] Run thread"); - ecore_thread_run(__play_thread, __end_play_thread, NULL, NULL); + ecore_thread_feedback_run(__play_thread, __notify_thread, __end_play_thread, NULL, NULL, EINA_TRUE); pthread_mutex_unlock(&g_player_control_mutex); return 0; @@ -1418,7 +1423,7 @@ int ttsd_player_resume(unsigned int uid) g_playing_info = current; SLOG(LOG_INFO, tts_tag(), "[Player] Resume to run thread"); - ecore_thread_run(__play_thread, __end_play_thread, NULL, NULL); + ecore_thread_feedback_run(__play_thread, __notify_thread, __end_play_thread, NULL, NULL, EINA_TRUE); pthread_mutex_unlock(&g_player_control_mutex); return 0;