aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-02-24 15:46:22 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-02-24 15:46:22 -0800
commit6e57b9edb19eaa302586beadcaa7cf21a3601025 (patch)
treea51db9fa67e43055330e417dfcc5aaa28e1759d3 /include
parenteeef8cd52b34282c89d1eadf7daff7bf401ac9b0 (diff)
Add Server.Wait
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/server.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc++/server.h b/include/grpc++/server.h
index 26d18d1bbe..429c0ff3cf 100644
--- a/include/grpc++/server.h
+++ b/include/grpc++/server.h
@@ -69,6 +69,11 @@ class Server final : private CallHook,
// Shutdown the server, block until all rpc processing finishes.
void Shutdown();
+ // Block waiting for all work to complete (the server must either
+ // be shutting down or some other thread must call Shutdown for this
+ // function to ever return)
+ void Wait();
+
private:
friend class ServerBuilder;