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

Method Wait

library/cpp/netliba/v12/udp_host.cpp:1726–1733  ·  view source on GitHub ↗

TODO: not perfect but emulate old behavoiur

Source from the content-addressed store, hash-verified

1724
1725 //TODO: not perfect but emulate old behavoiur
1726 void TUdpHost::Wait(float seconds) {
1727 if (SendResults.IsEmpty() && ReceivedClientQueue.IsEmpty()) {
1728 Event.Reset();
1729 if (SendResults.IsEmpty() && ReceivedClientQueue.IsEmpty()) {
1730 Event.Wait(ui32(seconds * 1000.0));
1731 }
1732 }
1733 }
1734
1735 void TUdpHost::StepLow() {
1736 TXUserQueue.DequeueAndRun();

Callers 5

SessionLevelTestFunction · 0.45
StartMethod · 0.45
WaitLowMethod · 0.45
TIBMemPoolMethod · 0.45
ThreadFuncMethod · 0.45

Calls 2

IsEmptyMethod · 0.45
ResetMethod · 0.45

Tested by 1

SessionLevelTestFunction · 0.36