diff options
author | Craig Tiller <ctiller@google.com> | 2015-04-27 11:48:46 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-04-27 11:48:46 -0700 |
commit | 8950461da777d4f5f2f7bfc85c307544e7b5307f (patch) | |
tree | 4cba0c0c168186b22df6219f3626f5b2917fa882 /src/core/surface/completion_queue.h | |
parent | 8bf5fc88d47ded1055e8fbb2ec99e75a3a356145 (diff) |
Have server hold a reference to completion queues
In the presence of garbage collectors, this helps ensure that completion
queues outlive the servers that depend upon them.
Diffstat (limited to 'src/core/surface/completion_queue.h')
-rw-r--r-- | src/core/surface/completion_queue.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/surface/completion_queue.h b/src/core/surface/completion_queue.h index 3a7cc99dda..41024cda14 100644 --- a/src/core/surface/completion_queue.h +++ b/src/core/surface/completion_queue.h @@ -43,6 +43,9 @@ grpc_event_finish */ typedef void (*grpc_event_finish_func)(void *user_data, grpc_op_error error); +void grpc_cq_internal_ref(grpc_completion_queue *cc); +void grpc_cq_internal_unref(grpc_completion_queue *cc); + /* Flag that an operation is beginning: the completion channel will not finish shutdown until a corrensponding grpc_cq_end_* call is made */ void grpc_cq_begin_op(grpc_completion_queue *cc, grpc_call *call, |