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

Method CUnitQueue

srtcore/queue.cpp:68–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66using namespace srt_logging;
67
68srt::CUnitQueue::CUnitQueue(int initNumUnits, int mss)
69 : m_iNumTaken(0)
70 , m_iMSS(mss)
71 , m_iBlockSize(initNumUnits)
72{
73 CQEntry* tempq = allocateEntry(m_iBlockSize, m_iMSS);
74
75 if (tempq == NULL)
76 throw CUDTException(MJ_SYSTEMRES, MN_MEMORY);
77
78 m_pQEntry = m_pCurrQueue = m_pLastQueue = tempq;
79 m_pQEntry->m_pNext = m_pQEntry;
80
81 m_pAvailUnit = m_pCurrQueue->m_pUnit;
82
83 m_iSize = m_iBlockSize;
84}
85
86srt::CUnitQueue::~CUnitQueue()
87{

Callers

nothing calls this directly

Calls 1

CUDTExceptionClass · 0.70

Tested by

no test coverage detected