Set name for TTS player thread 97/290997/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 5 Apr 2023 12:30:11 +0000 (21:30 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 6 Apr 2023 06:55:57 +0000 (15:55 +0900)
Change-Id: I72067b8a0e59e2529157d59e4a9bac6e59ce7937
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/PlayerThread.cpp

index 9b09ef1..cbaa095 100644 (file)
@@ -21,6 +21,10 @@ using namespace std;
 
 void PlayerThread::runThread(PlayerThread* player)
 {
+       pthread_t thread = pthread_self();
+       int nameSetResult = pthread_setname_np(thread, "ttsd_play_thread");
+       SLOG(LOG_INFO, tts_tag(), "Name : %d %lu", nameSetResult, thread);
+
        SLOG(LOG_INFO, tts_tag(), "[Player] Run player thread");
        player->runPlayer();
        SLOG(LOG_INFO, tts_tag(), "[Player] Exit player thread");