MCPcopy Create free account
hub / github.com/apache/thrift / stop

Method stop

lib/cpp/test/processor/ServerThread.cpp:60–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void ServerThread::stop() {
61 if (!running_) {
62 return;
63 }
64
65 // Tell the server to stop
66 server_->stop();
67 running_ = false;
68
69 // Wait for the server thread to exit
70 //
71 // Note: this only works if all client connections have closed. The servers
72 // generally wait for everything to be closed before exiting; there currently
73 // isn't a way to tell them to just exit now, and shut down existing
74 // connections.
75 thread_->join();
76}
77
78void ServerThread::run() {
79 /*

Callers 8

thrift_server_stopFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
~FixtureMethod · 0.45
BOOST_FIXTURE_TEST_CASEFunction · 0.45
stopServerMethod · 0.45
~FixtureMethod · 0.45
BOOST_FIXTURE_TEST_CASEFunction · 0.45
blockTestMethod · 0.45

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected