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

Function DoStop

library/cpp/coroutine/engine/coroutine_ut.cpp:544–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542 }
543
544 static void DoStop(TCont* cont, void* argPtr) {
545 TState& state = *(TState*)(argPtr);
546
547 TTimerEvent event(cont, TInstant::Now());
548 ExecuteEvent(&event);
549 state.Stop = true;
550 for (auto& sub: state.Subs) {
551 if (sub.Event) {
552 sub.Event->Wake(EWAKEDUP);
553 }
554 }
555 }
556
557 static void DoSub(TCont* cont, void* argPtr) {
558 TSubState& state = *(TSubState*)(argPtr);

Callers

nothing calls this directly

Calls 3

ExecuteEventFunction · 0.85
NowFunction · 0.50
WakeMethod · 0.45

Tested by

no test coverage detected