mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-25 04:53:27 -04:00
qrtplib: removed jthread
This commit is contained in:
@@ -40,13 +40,8 @@ namespace qrtplib
|
||||
|
||||
RTPSessionParams::RTPSessionParams() : mininterval(0,0)
|
||||
{
|
||||
#ifdef RTP_SUPPORT_THREAD
|
||||
usepollthread = true;
|
||||
m_needThreadSafety = true;
|
||||
#else
|
||||
usepollthread = false;
|
||||
m_needThreadSafety = false;
|
||||
#endif // RTP_SUPPORT_THREAD
|
||||
maxpacksize = RTP_DEFAULTPACKETSIZE;
|
||||
receivemode = RTPTransmitter::AcceptAll;
|
||||
acceptown = false;
|
||||
@@ -76,24 +71,14 @@ RTPSessionParams::RTPSessionParams() : mininterval(0,0)
|
||||
|
||||
int RTPSessionParams::SetUsePollThread(bool usethread)
|
||||
{
|
||||
#ifndef RTP_SUPPORT_THREAD
|
||||
JRTPLIB_UNUSED(usethread);
|
||||
return ERR_RTP_NOTHREADSUPPORT;
|
||||
#else
|
||||
usepollthread = usethread;
|
||||
return 0;
|
||||
#endif // RTP_SUPPORT_THREAD
|
||||
}
|
||||
|
||||
int RTPSessionParams::SetNeedThreadSafety(bool s)
|
||||
{
|
||||
#ifndef RTP_SUPPORT_THREAD
|
||||
JRTPLIB_UNUSED(s);
|
||||
return ERR_RTP_NOTHREADSUPPORT;
|
||||
#else
|
||||
m_needThreadSafety = s;
|
||||
return 0;
|
||||
#endif // RTP_SUPPORT_THREAD
|
||||
}
|
||||
|
||||
} // end namespace
|
||||
|
||||
Reference in New Issue
Block a user