Skip to content
Snippets Groups Projects
Commit c8596943 authored by Vijay Pai's avatar Vijay Pai
Browse files

Merge pull request #2646 from yang-g/inf_future

Fix gpr_inf_future call
parents a61ca70e 7cbac4cf
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ class condition_variable { ...@@ -87,7 +87,7 @@ class condition_variable {
~condition_variable() { gpr_cv_destroy(&cv_); } ~condition_variable() { gpr_cv_destroy(&cv_); }
void wait(lock_guard<mutex> &mu) { void wait(lock_guard<mutex> &mu) {
mu.locked = false; 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; mu.locked = true;
} }
void notify_one() { gpr_cv_signal(&cv_); } void notify_one() { gpr_cv_signal(&cv_); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment