diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-31 06:21:49 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-31 06:21:49 +0100 |
commit | d5d83aa33f0bab183ea64dea877abf6cdb0ec65a (patch) | |
tree | be58baa6544fef4471bafffeb505d4d3b00eb3cd /src/core/surface | |
parent | 01ba279fdddb28096893a4e09a62b915cdbca6be (diff) |
Fixing, using and testing alarm code.
Diffstat (limited to 'src/core/surface')
-rw-r--r-- | src/core/surface/alarm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/surface/alarm.c b/src/core/surface/alarm.c index 7c47dd56f8..22d5f2c7a0 100644 --- a/src/core/surface/alarm.c +++ b/src/core/surface/alarm.c @@ -48,7 +48,7 @@ struct grpc_alarm { static void do_nothing_end_completion(grpc_exec_ctx *exec_ctx, void *arg, grpc_cq_completion *c) {} -static void alarm_cb(grpc_exec_ctx *exec_ctx, void *arg, int success) { +static void alarm_cb(grpc_exec_ctx *exec_ctx, void *arg, bool success) { grpc_alarm *alarm = arg; grpc_cq_end_op(exec_ctx, alarm->cq, alarm->tag, success, do_nothing_end_completion, NULL, &alarm->completion); @@ -65,7 +65,7 @@ grpc_alarm *grpc_alarm_create(grpc_completion_queue *cq, gpr_timespec deadline, grpc_timer_init(&exec_ctx, &alarm->alarm, deadline, alarm_cb, alarm, gpr_now(GPR_CLOCK_MONOTONIC)); - grpc_cq_begin_op(cq); + grpc_cq_begin_op(cq, tag); grpc_exec_ctx_finish(&exec_ctx); return alarm; } |