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

Function RunUpdateTask

example/auto_concurrency_limiter/client.cpp:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158};
159
160void RunUpdateTask(void* data) {
161 TestCaseContext* context = (TestCaseContext*)data;
162 bool should_continue = context->Update();
163 if (should_continue) {
164 bthread::get_global_timer_thread()->schedule(RunUpdateTask, data,
165 butil::microseconds_from_now(FLAGS_client_qps_change_interval_us));
166 } else {
167 context->running.store(false, butil::memory_order_release);
168 }
169}
170
171void RunCase(test::ControlService_Stub &cntl_stub,
172 const test::TestCase& test_case) {

Callers

nothing calls this directly

Calls 5

get_global_timer_threadFunction · 0.85
microseconds_from_nowFunction · 0.85
UpdateMethod · 0.45
scheduleMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected