aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/sync_win32.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-19 22:50:18 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-19 22:50:18 -0700
commit56488eaf9cf67407ddfe191223055be9970fd4dc (patch)
tree87b18051af96e5e6d90c3ec9f80c9f176c4a1d51 /src/core/support/sync_win32.c
parent6a7626c98fbd2c013553a91f8ab7bf01afeedd3e (diff)
Fix Windows CV
Diffstat (limited to 'src/core/support/sync_win32.c')
-rw-r--r--src/core/support/sync_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/support/sync_win32.c b/src/core/support/sync_win32.c
index 63196d10d3..54f84a46ac 100644
--- a/src/core/support/sync_win32.c
+++ b/src/core/support/sync_win32.c
@@ -83,10 +83,10 @@ int gpr_cv_wait(gpr_cv *cv, gpr_mu *mu, gpr_timespec abs_deadline) {
int timeout = 0;
DWORD timeout_max_ms;
mu->locked = 0;
- if (gpr_time_cmp(abs_deadline, gpr_inf_future(GPR_CLOCK_REALTIME)) == 0) {
+ if (gpr_time_cmp(abs_deadline, gpr_inf_future(abs_deadline.clock_type)) == 0) {
SleepConditionVariableCS(cv, &mu->cs, INFINITE);
} else {
- gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME);
+ gpr_timespec now = gpr_now(abs_deadline.clock_type);
gpr_int64 now_ms = now.tv_sec * 1000 + now.tv_nsec / 1000000;
gpr_int64 deadline_ms =
abs_deadline.tv_sec * 1000 + abs_deadline.tv_nsec / 1000000;