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

Method Add

library/cpp/http/server/http.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 inline void Add(TClientConnection* c) noexcept {
89 TGuard<TMutex> g(Mutex_);
90
91 Conns_.PushBack(c);
92 if (Options.OneShotPoll) {
93 Poller_->WaitReadOneShot(c->Socket_, (void*)static_cast<const IPollAble*>(c));
94 } else {
95 Poller_->WaitRead(c->Socket_, (void*)static_cast<const IPollAble*>(c));
96 }
97 }
98
99 void Cleanup(size_t threadNum) {
100 if (Options.nListenerThreads < 2) {

Callers 3

AddRequestMethod · 0.45
DeActivateMethod · 0.45
RejectMethod · 0.45

Calls 3

WaitReadOneShotMethod · 0.80
WaitReadMethod · 0.80
PushBackMethod · 0.45

Tested by

no test coverage detected