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

Method Join

tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:411–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411Status GrpcServer::Join() {
412 mutex_lock l(mu_);
413 switch (state_) {
414 case NEW:
415 // Prevent the server from being started subsequently.
416 state_ = STOPPED;
417 return Status::OK();
418 case STARTED:
419 case STOPPED:
420 master_thread_.reset();
421 worker_thread_.reset();
422 eager_thread_.reset();
423 return Status::OK();
424 default:
425 LOG(FATAL);
426 }
427}
428
429const string GrpcServer::target() const {
430 return strings::StrCat("grpc://localhost:", bound_port_);

Callers 3

MakeGRPCClusterFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

resetMethod · 0.45

Tested by 2

MakeGRPCClusterFunction · 0.36
mainFunction · 0.36