From bd001c6246b011456161e245beb1f3df88d901fc Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Thu, 8 Aug 2024 11:07:45 +0200 Subject: [PATCH] [core] Fixed THREAD_STATE_INIT usage in CRcvQueue. --- srtcore/queue.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srtcore/queue.cpp b/srtcore/queue.cpp index 7adc9aa47..3d9dfa666 100644 --- a/srtcore/queue.cpp +++ b/srtcore/queue.cpp @@ -1207,7 +1207,9 @@ void* srt::CRcvQueue::worker(void* param) int32_t id = 0; #if ENABLE_LOGGING - THREAD_STATE_INIT(("SRT:RcvQ:w" + Sprint(m_counter)).c_str()); + std::string thname; + ThreadName::get(thname); + THREAD_STATE_INIT(thname.c_str()); #else THREAD_STATE_INIT("SRT:RcvQ:worker"); #endif