Skip to content

Commit

Permalink
[core] Fixed THREAD_STATE_INIT usage in CRcvQueue.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Aug 8, 2024
1 parent 4270a11 commit bd001c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion srtcore/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd001c6

Please sign in to comment.