1
0
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:
f4exb
2018-02-27 01:43:41 +01:00
parent 30d019d39a
commit c15c8b79d9
20 changed files with 32 additions and 633 deletions
-15
View File
@@ -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