aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-07-14 14:53:35 -0700
committerGravatar yang-g <yangg@google.com>2016-07-14 22:59:39 -0700
commit807387641f8a8acceb3a8e58adabf3080afb871d (patch)
tree128380358c6a9af36c8c6c5f799e27b89af6d2d8 /include/grpc++
parent05573f1692647ca30a10839b61731486700587ac (diff)
prevent spurious wake up and unstarted/already shutdown server
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/grpc++/server.h b/include/grpc++/server.h
index 9a2f8f11c4..6876961e21 100644
--- a/include/grpc++/server.h
+++ b/include/grpc++/server.h
@@ -179,6 +179,7 @@ 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_;