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

Function DoMain

library/cpp/coroutine/engine/coroutine_ut.cpp:490–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488 }
489
490 static void DoMain(TCont* cont) noexcept {
491 TState state;
492
493 // 01.{Ready:[]} > {Ready:[Sub]}
494 auto* sub = cont->Executor()->Create(DoSub, &state, "Sub");
495
496 // 02.{Ready:[Sub]} > {Ready:[Sub,Aux]}
497 cont->Executor()->Create(DoAux, &state, "Aux");
498
499 // 03.{Ready:[Sub,Aux]} > SwitchTo(Sub)
500 cont->Join(sub);
501 }
502}
503
504void TCoroTest::TestJoinCancelExitRaceBug() {

Callers

nothing calls this directly

Calls 15

MilliSecondsFunction · 0.85
CurrentExceptionMessageFunction · 0.85
YieldMethod · 0.80
AsStrBufMethod · 0.80
NowFunction · 0.50
SecondsFunction · 0.50
CreateMethod · 0.45
ExecutorMethod · 0.45
JoinMethod · 0.45
dataMethod · 0.45
WakeMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected