diff options
author | 2018-03-09 09:39:42 -0800 | |
---|---|---|
committer | 2018-03-09 09:39:42 -0800 | |
commit | 838af3eb6c6c6e7d49931ddc5c7e9c4fd26f2a18 (patch) | |
tree | 1d9a3bc803a3e185aaf06bf4d1bc7b1cdae25917 /include/grpcpp/server.h | |
parent | 57237443ac86c8f46d9b028a06c27b72318404b2 (diff) |
moved member variables from protected to private
Per style guide, the member variables are not protected but private and
accessed through methods.
Diffstat (limited to 'include/grpcpp/server.h')
-rw-r--r-- | include/grpcpp/server.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/grpcpp/server.h b/include/grpcpp/server.h index b09c590a7e..77ae7206b4 100644 --- a/include/grpcpp/server.h +++ b/include/grpcpp/server.h @@ -153,11 +153,7 @@ class Server : public ServerInterface, private GrpcLibraryCodegen { /// \param num_cqs How many completion queues does \a cqs hold. void Start(ServerCompletionQueue** cqs, size_t num_cqs) override; - // Pointer to the wrapped grpc_server. - grpc_server* server_; - - // Server status - bool started_; + grpc_server* server() override { return server_; }; private: friend class AsyncGenericService; @@ -191,8 +187,6 @@ class Server : public ServerInterface, private GrpcLibraryCodegen { return max_receive_message_size_; }; - grpc_server* server() override { return server_; }; - ServerInitializer* initializer(); const int max_receive_message_size_; @@ -209,6 +203,8 @@ class Server : public ServerInterface, private GrpcLibraryCodegen { // Server status std::mutex mu_; + // Server status + bool started_; bool shutdown_; bool shutdown_notified_; // Was notify called on the shutdown_cv_ @@ -219,6 +215,9 @@ class Server : public ServerInterface, private GrpcLibraryCodegen { std::vector<grpc::string> services_; bool has_generic_service_; + // Pointer to the wrapped grpc_server. + grpc_server* server_; + std::unique_ptr<ServerInitializer> server_initializer_; std::unique_ptr<HealthCheckServiceInterface> health_check_service_; |