| 462 | #endif |
| 463 | |
| 464 | void 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 | |
| 481 | int srt::CSndQueue::getIpTTL() const |
| 482 | { |