| 66 | using namespace srt_logging; |
| 67 | |
| 68 | srt::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 | |
| 86 | srt::CUnitQueue::~CUnitQueue() |
| 87 | { |
nothing calls this directly
no test coverage detected