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

Method Yield

library/cpp/coroutine/engine/impl.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void TCont::Yield() noexcept {
80 if (SleepD(TInstant::Zero())) {
81 ReScheduleAndSwitch();
82 }
83}
84
85void TCont::ReScheduleAndSwitch() noexcept {
86 ReSchedule();

Callers 15

~TCtxMethod · 0.80
CoRunFunction · 0.80
operator()Method · 0.80
CoMutexFunction · 0.80
CoCondVarTestFunction · 0.80
DoMainFunction · 0.80
DoSubFunction · 0.80
DoSubCFunction · 0.80
DoSubBFunction · 0.80
DoSubAFunction · 0.80
TestUserEventMethod · 0.80

Calls 1

ZeroFunction · 0.85

Tested by 2

TestUserEventMethod · 0.64