diff options
author | Craig Tiller <ctiller@google.com> | 2016-02-08 10:23:11 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-02-08 10:23:11 -0800 |
commit | 91aaee429be3b0e00a78120e58b38233ca51b16c (patch) | |
tree | 236012b191da7127f46ff6c3fe353f546799ecdf /src/core | |
parent | 55e813f94669dbcc449ecb787dd3d767d43fb87f (diff) | |
parent | 0a7468a537f3cc22160247ef88968c8c2d5af118 (diff) |
Merge pull request #5096 from a-veitch/win_cv_wait
Add timespan support for win32 gpr_cv_wait.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/support/sync_win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/support/sync_win32.c b/src/core/support/sync_win32.c index 84d412a75f..41998ebcb6 100644 --- a/src/core/support/sync_win32.c +++ b/src/core/support/sync_win32.c @@ -87,6 +87,7 @@ int gpr_cv_wait(gpr_cv *cv, gpr_mu *mu, gpr_timespec abs_deadline) { 0) { SleepConditionVariableCS(cv, &mu->cs, INFINITE); } else { + abs_deadline = gpr_convert_clock_type(abs_deadline, GPR_CLOCK_REALTIME); gpr_timespec now = gpr_now(abs_deadline.clock_type); int64_t now_ms = (int64_t)now.tv_sec * 1000 + now.tv_nsec / 1000000; int64_t deadline_ms = |