Add volatile to stopped_ member

bugfix/anakin-compile
minqiyang 7 years ago
parent b78ffde6d5
commit 053540e199

@ -238,7 +238,7 @@ class GRPCClient : public RPCClient {
std::mutex completed_mutex_;
bool completed_;
bool stopped_;
volatile bool stopped_;
};
} // namespace distributed

Loading…
Cancel
Save