Browse Source

!13286 remove mutex

From: @anancds
Reviewed-by: @wilfchen,@cristoval
Signed-off-by: @cristoval
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
1e771f716d
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      mindspore/ccsrc/ps/core/server_node.cc
  2. +0
    -1
      mindspore/ccsrc/ps/core/worker_node.cc

+ 0
- 1
mindspore/ccsrc/ps/core/server_node.cc View File

@@ -150,7 +150,6 @@ bool ServerNode::Stop() {
} }


bool ServerNode::Finish(const uint32_t &timeout) { bool ServerNode::Finish(const uint32_t &timeout) {
std::lock_guard<std::mutex> lock(finish_mutex_);
if (is_already_finished_) { if (is_already_finished_) {
MS_LOG(INFO) << "Server node already finish!"; MS_LOG(INFO) << "Server node already finish!";
return true; return true;


+ 0
- 1
mindspore/ccsrc/ps/core/worker_node.cc View File

@@ -81,7 +81,6 @@ bool WorkerNode::Stop() {
} }


bool WorkerNode::Finish(const uint32_t &timeout) { bool WorkerNode::Finish(const uint32_t &timeout) {
std::lock_guard<std::mutex> lock(finish_mutex_);
if (is_already_finished_) { if (is_already_finished_) {
MS_LOG(INFO) << "Worker node already finish!"; MS_LOG(INFO) << "Worker node already finish!";
return true; return true;


Loading…
Cancel
Save