MCPcopy Create free account
hub / github.com/catboost/catboost / ExecServerThread

Method ExecServerThread

library/cpp/netliba/v12/udp_host.cpp:468–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466 }
467
468 void* TUdpHost::ExecServerThread(void* param) {
469 TUdpHost* pThis = reinterpret_cast<TUdpHost*>(param);
470 BindToSocket(0);
471 SetHighestThreadPriority();
472 pThis->HasStarted.Signal();
473 while (AtomicAdd(pThis->Run, 0)) {
474 pThis->StepLow();
475 pThis->WaitLow(0.1f);
476 }
477 pThis->StepLow(); //one step in case of exit to empty TTXQueue
478 return nullptr;
479 }
480
481 TUdpHost::~TUdpHost() {
482 TUdpRequest* req = nullptr;

Callers

nothing calls this directly

Calls 6

SetHighestThreadPriorityFunction · 0.85
StepLowMethod · 0.80
WaitLowMethod · 0.80
BindToSocketFunction · 0.70
AtomicAddFunction · 0.50
SignalMethod · 0.45

Tested by

no test coverage detected