| 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 | |
| 504 | void TCoroTest::TestJoinCancelExitRaceBug() { |
nothing calls this directly
no test coverage detected