MCPcopy Create free account
hub / github.com/Haivision/srt / insert

Method insert

srtcore/queue.cpp:644–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642srt::CRcvUList::~CRcvUList() {}
643
644void srt::CRcvUList::insert(const CUDT* u)
645{
646 CRNode* n = u->m_pRNode;
647 n->m_tsTimeStamp = steady_clock::now();
648
649 if (NULL == m_pUList)
650 {
651 // empty list, insert as the single node
652 n->m_pPrev = n->m_pNext = NULL;
653 m_pLast = m_pUList = n;
654
655 return;
656 }
657
658 // always insert at the end for RcvUList
659 n->m_pPrev = m_pLast;
660 n->m_pNext = NULL;
661 m_pLast->m_pNext = n;
662 m_pLast = n;
663}
664
665void srt::CRcvUList::remove(const CUDT* u)
666{

Callers 3

worker_RetrieveUnitMethod · 0.45
registerConnectorMethod · 0.45

Calls 4

FormatTimeFunction · 0.85
push_backMethod · 0.80
strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected