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

Function CoRun

library/cpp/coroutine/engine/coroutine_ut.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132static int i0;
133
134static void CoRun(TCont* c, void* /*run*/) {
135 while (i0 < 100000) {
136 ++i0;
137 UNIT_ASSERT(RunningCont() == c);
138 c->Yield();
139 UNIT_ASSERT(RunningCont() == c);
140 }
141}
142
143static void CoMain(TCont* c, void* /*arg*/) {
144 for (volatile size_t i2 = 0; i2 < 10; ++i2) {

Callers

nothing calls this directly

Calls 2

RunningContFunction · 0.85
YieldMethod · 0.80

Tested by

no test coverage detected