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

Method Run

tools/parallel_http/parallel_http.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54void OnHttpCallEnd::Run() {
55 std::unique_ptr<OnHttpCallEnd> delete_self(this);
56 {
57 BAIDU_SCOPED_LOCK(args->output_queue_mutex);
58 if (cntl.Failed()) {
59 args->output_queue.push_back(std::make_pair(url, butil::IOBuf()));
60 } else {
61 args->output_queue.push_back(
62 std::make_pair(url, cntl.response_attachment()));
63 }
64 }
65 args->current_concurrency.fetch_sub(1, butil::memory_order_relaxed);
66}
67
68void* access_thread(void* void_args) {
69 AccessThreadArgs* args = (AccessThreadArgs*)void_args;

Callers 1

handle_responseFunction · 0.45

Calls 4

fetch_subMethod · 0.80
IOBufClass · 0.50
FailedMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected