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

Method start

tools/rpc_press/info_thread.cpp:102–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102bool InfoThread::start(const InfoThreadOptions& options) {
103 if (options.latency_recorder == NULL ||
104 options.error_count == NULL ||
105 options.sent_count == NULL) {
106 LOG(ERROR) << "Some required options are NULL";
107 return false;
108 }
109 _options = options;
110 _stop = false;
111 if (pthread_create(&_tid, NULL, run_info_thread, this) != 0) {
112 LOG(ERROR) << "Fail to create info_thread";
113 return false;
114 }
115 return true;
116}
117
118void InfoThread::stop() {
119 {

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