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

Method init

srtcore/queue.cpp:464–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462#endif
463
464void srt::CSndQueue::init(CChannel* c, CTimer* t)
465{
466 m_pChannel = c;
467 m_pTimer = t;
468 m_pSndUList = new CSndUList(t);
469
470#if ENABLE_LOGGING
471 ++m_counter;
472 const std::string thrname = "SRT:SndQ:w" + Sprint(m_counter);
473 const char* thname = thrname.c_str();
474#else
475 const char* thname = "SRT:SndQ";
476#endif
477 if (!StartThread(m_WorkerThread, CSndQueue::worker, this, thname))
478 throw CUDTException(MJ_SYSTEMRES, MN_THREAD);
479}
480
481int srt::CSndQueue::getIpTTL() const
482{

Callers 8

updateMuxMethod · 0.45
createCrypterMethod · 0.45
setupCCMethod · 0.45
CEventMethod · 0.45
CUDTGroupMethod · 0.45
setupCondFunction · 0.45
SetUpMethod · 0.45
TESTFunction · 0.45

Calls 4

SprintFunction · 0.85
StartThreadFunction · 0.85
c_strMethod · 0.80
CUDTExceptionClass · 0.70

Tested by 2

SetUpMethod · 0.36
TESTFunction · 0.36