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 /include | |
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 'include')
-rw-r--r-- | include/grpc/impl/codegen/sync.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc/impl/codegen/sync.h b/include/grpc/impl/codegen/sync.h index 7086b5d371..04ff0dc5bf 100644 --- a/include/grpc/impl/codegen/sync.h +++ b/include/grpc/impl/codegen/sync.h @@ -115,7 +115,8 @@ GPR_API void gpr_cv_destroy(gpr_cv *cv); /* Atomically release *mu and wait on *cv. When the calling thread is woken from *cv or the deadline abs_deadline is exceeded, execute gpr_mu_lock(mu) and return whether the deadline was exceeded. Use - abs_deadline==gpr_inf_future for no deadline. May return even when not + abs_deadline==gpr_inf_future for no deadline. abs_deadline can be either + an absolute deadline, or a GPR_TIMESPAN. May return even when not woken explicitly. Requires: *mu and *cv initialized; the calling thread holds an exclusive lock on *mu. */ GPR_API int gpr_cv_wait(gpr_cv *cv, gpr_mu *mu, gpr_timespec abs_deadline); |