aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2016-07-21 11:28:44 -0700
committerGravatar GitHub <noreply@github.com>2016-07-21 11:28:44 -0700
commitf6aefa3ea66d6e49c3853dea260ef723ff796f99 (patch)
treebecd29d3d3d44ad8962eba82f4efcd1229805b93 /include
parentd9f2fe7bb9e35b938f1d3db35c1ce07dd97d138c (diff)
parent807387641f8a8acceb3a8e58adabf3080afb871d (diff)
Merge pull request #7400 from yang-g/ga_branch2
Cherrypick #7319 into v1.0.x
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/grpc++/server.h b/include/grpc++/server.h
index 7a8858ef19..6876961e21 100644
--- a/include/grpc++/server.h
+++ b/include/grpc++/server.h
@@ -179,10 +179,13 @@ class Server GRPC_FINAL : public ServerInterface, private GrpcLibraryCodegen {
grpc::mutex mu_;
bool started_;
bool shutdown_;
+ bool shutdown_notified_;
// The number of threads which are running callbacks.
int num_running_cb_;
grpc::condition_variable callback_cv_;
+ grpc::condition_variable shutdown_cv_;
+
std::shared_ptr<GlobalCallbacks> global_callbacks_;
std::list<SyncRequest>* sync_methods_;