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

Function EndRunningCallMethodInPool

src/brpc/policy/nshead_protocol.cpp:204–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204static void EndRunningCallMethodInPool(NsheadService* service,
205 const Server& server,
206 Controller* controller,
207 const NsheadMessage& request,
208 NsheadMessage* response,
209 NsheadClosure* done) {
210 CallMethodInBackupThreadArgs* args = new CallMethodInBackupThreadArgs;
211 args->service = service;
212 args->server = &server;
213 args->controller = controller;
214 args->request = &request;
215 args->response = response;
216 args->done = done;
217 return EndRunningUserCodeInPool(CallMethodInBackupThread, args);
218};
219
220void ProcessNsheadRequest(InputMessageBase* msg_base) {
221 const int64_t start_parse_us = butil::cpuwide_time_us();

Callers 5

ProcessHttpRequestFunction · 0.70
ProcessSofaRequestFunction · 0.70
ProcessNsheadRequestFunction · 0.70
ProcessMongoRequestFunction · 0.70
ProcessHuluRequestFunction · 0.70

Calls 1

EndRunningUserCodeInPoolFunction · 0.85

Tested by

no test coverage detected