提交 008f6df9 编写于 作者: T typhoonzero

update

上级 ef48f3c7
...@@ -208,6 +208,11 @@ void AsyncGRPCServer::WaitClientGet(int count) { ...@@ -208,6 +208,11 @@ void AsyncGRPCServer::WaitClientGet(int count) {
} }
} }
bool AsyncGRPCServer::WaitServerReady() {
std::unique_lock<std::mutex> lock(this->mutex_ready_);
condition_ready_.wait(lock, [&] { return this->ready_ == 1; });
}
void AsyncGRPCServer::RunSyncUpdate() { void AsyncGRPCServer::RunSyncUpdate() {
::grpc::ServerBuilder builder; ::grpc::ServerBuilder builder;
builder.AddListeningPort(address_, ::grpc::InsecureServerCredentials(), builder.AddListeningPort(address_, ::grpc::InsecureServerCredentials(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册