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

Function EndRunningCallMethodInPool

src/brpc/policy/baidu_rpc_protocol.cpp:481–496  ·  view source on GitHub ↗

Used by other protocols as well.

Source from the content-addressed store, hash-verified

479
480// Used by other protocols as well.
481void EndRunningCallMethodInPool(
482 ::google::protobuf::Service* service,
483 const ::google::protobuf::MethodDescriptor* method,
484 ::google::protobuf::RpcController* controller,
485 const ::google::protobuf::Message* request,
486 ::google::protobuf::Message* response,
487 ::google::protobuf::Closure* done) {
488 CallMethodInBackupThreadArgs* args = new CallMethodInBackupThreadArgs;
489 args->service = service;
490 args->method = method;
491 args->controller = controller;
492 args->request = request;
493 args->response = response;
494 args->done = done;
495 return EndRunningUserCodeInPool(CallMethodInBackupThread, args);
496};
497
498bool DeserializeRpcMessage(const butil::IOBuf& data, Controller& cntl,
499 ContentType content_type, CompressType compress_type,

Callers 1

ProcessRpcRequestFunction · 0.70

Calls 1

EndRunningUserCodeInPoolFunction · 0.85

Tested by

no test coverage detected