We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a56b663 commit 3a3f28fCopy full SHA for 3a3f28f
paddle/fluid/operators/distributed/grpc_client.cc
@@ -290,12 +290,18 @@ void GRPCClient::Proceed() {
290
c->Finish(false);
291
}
292
293
- delete c;
+ bool notify = false;
294
{
295
std::lock_guard<std::mutex> lk(sync_mutex_);
296
req_count_--;
297
+ notify = (req_count_ <= 0 || !c->status_.ok());
298
+ }
299
+
300
+ delete c;
301
302
+ if (notify) {
303
+ sync_cond_.notify_all();
304
- sync_cond_.notify_all();
305
306
VLOG(3) << "GRPCClient Proceed end";
307
0 commit comments