Merge pull request #2646 from yang-g/inf_future

Fix gpr_inf_future call
pull/2649/head
Vijay Pai 10 years ago
commit c8596943b1
  1. 2
      include/grpc++/impl/sync_no_cxx11.h

@ -87,7 +87,7 @@ class condition_variable {
~condition_variable() { gpr_cv_destroy(&cv_); }
void wait(lock_guard<mutex> &mu) {
mu.locked = false;
gpr_cv_wait(&cv_, &mu.mu_.mu_, gpr_inf_future);
gpr_cv_wait(&cv_, &mu.mu_.mu_, gpr_inf_future(GPR_CLOCK_REALTIME);
mu.locked = true;
}
void notify_one() { gpr_cv_signal(&cv_); }

Loading…
Cancel
Save