Browse Source

remove mutex

tags/v1.2.0-rc1
chendongsheng 5 years ago
parent
commit
bc2bf440b9
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) {
std::lock_guard<std::mutex> lock(finish_mutex_);
if (is_already_finished_) {
MS_LOG(INFO) << "Server node already finish!";
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) {
std::lock_guard<std::mutex> lock(finish_mutex_);
if (is_already_finished_) {
MS_LOG(INFO) << "Worker node already finish!";
return true;


Loading…
Cancel
Save