aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/completion_queue.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-01-16 11:34:55 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-01-16 11:34:55 -0800
commit4ffdcd56ce472093ff58d53142230542653616f2 (patch)
tree96afc65e5de65cd3d90a9e5e2a39a8c78dd0cc52 /src/core/surface/completion_queue.h
parentab24de50197cb18ee32b64066c5e3a8d660779d6 (diff)
Add an optional server shutdown event.
Allows servers to expedite shutdown once all in-progress calls are completed. We may want to eventually remove grpc_server_shutdown in preference to this.
Diffstat (limited to 'src/core/surface/completion_queue.h')
-rw-r--r--src/core/surface/completion_queue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/surface/completion_queue.h b/src/core/surface/completion_queue.h
index 5e45749396..85984075f7 100644
--- a/src/core/surface/completion_queue.h
+++ b/src/core/surface/completion_queue.h
@@ -97,6 +97,8 @@ void grpc_cq_end_new_rpc(grpc_completion_queue *cc, void *tag, grpc_call *call,
gpr_timespec deadline, size_t metadata_count,
grpc_metadata *metadata_elements);
+void grpc_cq_end_server_shutdown(grpc_completion_queue *cc, void *tag);
+
/* disable polling for some tests */
void grpc_completion_queue_dont_poll_test_only(grpc_completion_queue *cc);