MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / HandleRPCsLoop

Method HandleRPCsLoop

tensorflow/contrib/verbs/grpc_verbs_service.cc:78–95  ·  view source on GitHub ↗

This method blocks forever handling requests from the completion queue.

Source from the content-addressed store, hash-verified

76
77// This method blocks forever handling requests from the completion queue.
78void GrpcVerbsService::HandleRPCsLoop() {
79 for (int i = 0; i < 10; ++i) {
80 ENQUEUE_REQUEST(GetRemoteAddress, false);
81 }
82
83 void* tag;
84 bool ok;
85
86 while (cq_->Next(&tag, &ok)) {
87 UntypedCall<GrpcVerbsService>::Tag* callback_tag =
88 static_cast<UntypedCall<GrpcVerbsService>::Tag*>(tag);
89 if (callback_tag) {
90 callback_tag->OnCompleted(this, ok);
91 } else {
92 cq_->Shutdown();
93 }
94 }
95}
96
97void GrpcVerbsService::GetRemoteAddressHandler(
98 WorkerCall<GetRemoteAddressRequest, GetRemoteAddressResponse>* call) {

Callers 2

StartMethod · 0.45
StartMethod · 0.45

Calls 3

NextMethod · 0.45
OnCompletedMethod · 0.45
ShutdownMethod · 0.45

Tested by

no test coverage detected