Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Fixed THREAD_STATE_INIT usage in CRcvQueue. #3001

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading