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] Fixes and rework concerning TSA reports #2986

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Blocked declaration not well handled by older clang
Mikolaj Malecki committed Jul 26, 2024
commit 596c436da2d95af9bbf3f0abfed6984fffabb5b9
6 changes: 5 additions & 1 deletion srtcore/api.h
Original file line number Diff line number Diff line change
@@ -407,7 +407,11 @@ class CUDTUnited
groups_t m_Groups;
#endif

sync::Mutex m_GlobControlLock SRT_TSA_LOCK_ORDERS_AFTER(CUDT::m_ConnectionLock); // used to synchronize UDT API
// XXX Desired, but blocked because the older clang compilers
// do not handle this declaration correctly. Unblock in devel builds
// for checking.
// SRT_TSA_LOCK_ORDERS_AFTER(CUDT::m_ConnectionLock)
sync::Mutex m_GlobControlLock; // used to synchronize UDT API

sync::Mutex m_IDLock; // used to synchronize ID generation


Unchanged files with check annotations Beta

}
}
/* UNUSED. Restore if needed. NOTE: SRT_TSA_NEEDS_LOCKED(CUDTUnited::m_GlobControlLock)
vector<SRTSOCKET> srt::CUDT::existingSockets()
{
vector<SRTSOCKET> out;
for (CUDTUnited::sockets_t::iterator i = uglobal().m_Sockets.begin(); i != uglobal().m_Sockets.end(); ++i)
{
out.push_back(i->first);
}
return out;
}
*/

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
SRT_SOCKSTATUS srt::CUDT::getsockstate(SRTSOCKET u)
{