未验证 提交 8fbb9fa3 编写于 作者: Z zmx 提交者: GitHub

fix heter_server (#37604)

上级 fcd44b54
...@@ -336,7 +336,7 @@ class HeterServer { ...@@ -336,7 +336,7 @@ class HeterServer {
bool IsExit() { return service_.IsExit(); } bool IsExit() { return service_.IsExit(); }
HeterServer() {} HeterServer() { this->ready_ = 0; }
void RegisterServiceHandler(std::string message_name, void RegisterServiceHandler(std::string message_name,
HeterServiceHandler func); HeterServiceHandler func);
...@@ -391,7 +391,7 @@ class HeterServer { ...@@ -391,7 +391,7 @@ class HeterServer {
DISABLE_COPY_AND_ASSIGN(HeterServer); DISABLE_COPY_AND_ASSIGN(HeterServer);
std::mutex mutex_ready_; std::mutex mutex_ready_;
int ready_; int ready_ = 0;
}; };
} // end namespace distributed } // end namespace distributed
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册