diff options
author | 2016-07-14 18:26:25 -0700 | |
---|---|---|
committer | 2016-07-14 18:26:25 -0700 | |
commit | 27a02b5d9d79f5f8eae09315b13d61595e16c1a6 (patch) | |
tree | 85b2755bae817ee8e376075dd057d07ba36d3cda /include | |
parent | 7f6c7798b08afcbf77e675e0bc4e8ce5b6ba580d (diff) | |
parent | 6ec11f2acd1311384cd17ea933e7bb9140ef75d7 (diff) |
Merge pull request #7319 from yang-g/wait_async
Make Server::Wait work for async only server.
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/server.h | 3 |
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_; |