Skip to content

Commit

Permalink
[core] Fixed THREAD_STATE_INIT usage in CRcvQueue (#3001).
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored Aug 8, 2024
1 parent b8a2822 commit 91f2c59
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions srtcore/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,9 @@ void* srt::CSndQueue::worker(void* param)
{
CSndQueue* self = (CSndQueue*)param;

#if ENABLE_LOGGING
THREAD_STATE_INIT(("SRT:SndQ:w" + Sprint(m_counter)).c_str());
#else
THREAD_STATE_INIT("SRT:SndQ:worker");
#endif
std::string thname;
ThreadName::get(thname);
THREAD_STATE_INIT(thname.c_str());

#if defined(SRT_DEBUG_SNDQ_HIGHRATE)
#define IF_DEBUG_HIGHRATE(statement) statement
Expand Down Expand Up @@ -1206,11 +1204,9 @@ void* srt::CRcvQueue::worker(void* param)
sockaddr_any sa(self->getIPversion());
int32_t id = 0;

#if ENABLE_LOGGING
THREAD_STATE_INIT(("SRT:RcvQ:w" + Sprint(m_counter)).c_str());
#else
THREAD_STATE_INIT("SRT:RcvQ:worker");
#endif
std::string thname;
ThreadName::get(thname);
THREAD_STATE_INIT(thname.c_str());

CUnit* unit = 0;
EConnectStatus cst = CONN_AGAIN;
Expand Down

0 comments on commit 91f2c59

Please sign in to comment.