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

Method Stop

library/cpp/http/server/http.cpp:270–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 void Stop() {
271 Shutdown();
272
273 TGuard<TMutex> g(StopMutex);
274 JoinListenerThreads();
275
276 while (AtomicGet(ConnectionCount)) {
277 usleep(10000);
278 Connections->Clear();
279 }
280
281 Connections.Destroy();
282 Poller.Destroy();
283 }
284
285 void Shutdown() {
286 ListenWakeupWriteFd.Write("", 1);

Callers

nothing calls this directly

Calls 5

usleepFunction · 0.85
ShutdownFunction · 0.50
AtomicGetFunction · 0.50
ClearMethod · 0.45
DestroyMethod · 0.45

Tested by

no test coverage detected