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

Method Terminate

library/cpp/coroutine/engine/impl.cpp:90–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void TCont::Terminate() {
91 while (!Waiters_.Empty()) {
92 Waiters_.PopFront()->Wake();
93 }
94 Executor()->Exit(this);
95}
96
97bool TCont::IAmRunning() const noexcept {
98 return this == Executor()->Running();

Callers 1

DoRunMethod · 0.45

Calls 4

ExitMethod · 0.80
EmptyMethod · 0.45
WakeMethod · 0.45
PopFrontMethod · 0.45

Tested by

no test coverage detected