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

Method stop

tools/rpc_press/info_thread.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void InfoThread::stop() {
119 {
120 BAIDU_SCOPED_LOCK(_mutex);
121 if (_stop) {
122 return;
123 }
124 _stop = true;
125 pthread_cond_signal(&_cond);
126 }
127 pthread_join(_tid, NULL);
128}
129
130} // namespace brpc

Callers 15

mainFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
wakerFunction · 0.45
batch_wakerFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
ssl_perf_clientFunction · 0.45
TEST_FFunction · 0.45
launch_many_bthreadsFunction · 0.45
thread_adderFunction · 0.45

Calls

no outgoing calls

Tested by 15

TESTFunction · 0.36
TESTFunction · 0.36
wakerFunction · 0.36
batch_wakerFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
ssl_perf_clientFunction · 0.36
TEST_FFunction · 0.36
launch_many_bthreadsFunction · 0.36
thread_adderFunction · 0.36
thread_maxerFunction · 0.36