MCPcopy Create free account
hub / github.com/apache/impala / Shutdown

Method Shutdown

be/src/kudu/rpc/reactor.cc:233–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void ReactorThread::Shutdown(Messenger::ShutdownMode mode) {
234 CHECK(reactor_->closing()) << "Should be called after setting closing_ flag";
235
236 VLOG(1) << name() << ": shutting down Reactor thread.";
237 WakeThread();
238
239 if (mode == Messenger::ShutdownMode::SYNC) {
240 // Join() will return a bad status if asked to join on the currently
241 // running thread.
242 CHECK_OK(ThreadJoiner(thread_.get()).Join());
243 }
244}
245
246void ReactorThread::ShutdownInternal() {
247 DCHECK(IsCurrentThread());

Callers 13

TearDownMethod · 0.45
TESTFunction · 0.45
TearDownMethod · 0.45
TEST_PFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_PFunction · 0.45
TEST_FFunction · 0.45
ShutdownInternalMethod · 0.45
ScanIdleConnectionsMethod · 0.45
FindConnectionMethod · 0.45

Calls 8

ThreadJoinerClass · 0.85
ShutdownErrorFunction · 0.85
frontMethod · 0.80
getMethod · 0.65
closingMethod · 0.45
JoinMethod · 0.45
emptyMethod · 0.45
AbortMethod · 0.45

Tested by 9

TearDownMethod · 0.36
TESTFunction · 0.36
TearDownMethod · 0.36
TEST_PFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_PFunction · 0.36
TEST_FFunction · 0.36