diff options
author | Craig Tiller <ctiller@google.com> | 2017-09-08 11:45:11 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-09-08 11:45:11 -0700 |
commit | fabb513fe4b8b654c8cd58c6cc8189324ca8d402 (patch) | |
tree | 55956e37bec5aecfd734949231c2076f17dcc7f2 /src/core/lib/iomgr/timer.h | |
parent | da8a16992823201fb68685ffdc2b433719d03fed (diff) | |
parent | 24ea59b31de83fadced949a558b8eda44c3bff35 (diff) |
Merge
Diffstat (limited to 'src/core/lib/iomgr/timer.h')
-rw-r--r-- | src/core/lib/iomgr/timer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/timer.h b/src/core/lib/iomgr/timer.h index 89c997bdca..e51cb44fbc 100644 --- a/src/core/lib/iomgr/timer.h +++ b/src/core/lib/iomgr/timer.h @@ -43,6 +43,10 @@ typedef struct grpc_timer grpc_timer; void grpc_timer_init(grpc_exec_ctx *exec_ctx, grpc_timer *timer, grpc_millis deadline, grpc_closure *closure); +/* Initialize *timer without setting it. This can later be passed through + the regular init or cancel */ +void grpc_timer_init_unset(grpc_timer *timer); + /* Note that there is no timer destroy function. This is because the timer is a one-time occurrence with a guarantee that the callback will be called exactly once, either at expiration or cancellation. Thus, all |