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

Method Wait

library/cpp/yt/threading/spin_wait.cpp:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void TSpinWait::Wait()
57{
58 if (Y_LIKELY(SpinIteration_++ < SpinIterationCount)) {
59 return;
60 }
61
62 SpinIteration_ = 0;
63
64 if (SlowPathStartInstant_ < 0) {
65 SlowPathStartInstant_ = GetCpuInstant();
66 }
67
68 Sleep(SuggestSleepDelay(SleepIteration_++));
69}
70
71////////////////////////////////////////////////////////////////////////////////
72

Callers 9

~TSlowlyDyingObjectMethod · 0.45
AcquireReaderSlowMethod · 0.45
AcquireWriterSlowMethod · 0.45
AcquireSlowMethod · 0.45
AcquireSlowMethod · 0.45
AcquireReaderSlowMethod · 0.45
AcquireWriterSlowMethod · 0.45

Calls 2

SleepFunction · 0.85
SuggestSleepDelayFunction · 0.85

Tested by

no test coverage detected