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

Function EndRunningCallMethodInPool

src/brpc/policy/thrift_protocol.cpp:440–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440static void EndRunningCallMethodInPool(ThriftService* service,
441 Controller* controller,
442 ThriftFramedMessage* request,
443 ThriftFramedMessage* response,
444 ThriftClosure* done) {
445 CallMethodInBackupThreadArgs* args = new CallMethodInBackupThreadArgs;
446 args->service = service;
447 args->controller = controller;
448 args->request = request;
449 args->response = response;
450 args->done = done;
451 return EndRunningUserCodeInPool(CallMethodInBackupThread, args);
452};
453
454void ProcessThriftRequest(InputMessageBase* msg_base) {
455 const int64_t start_parse_us = butil::cpuwide_time_us();

Callers 1

ProcessThriftRequestFunction · 0.70

Calls 1

EndRunningUserCodeInPoolFunction · 0.85

Tested by

no test coverage detected