diff options
author | 2015-04-28 07:43:25 -0700 | |
---|---|---|
committer | 2015-04-28 07:43:25 -0700 | |
commit | c9fd80e6e5edc29a973cfb6c020eaba0cfb83ff5 (patch) | |
tree | c547c80c3666d5a051e447b2569bd1b2dd8d4e3d /include | |
parent | bec41a298bf71ebdebcbe522c1622467132020e9 (diff) | |
parent | a3c42cdcaf8b89944afc146363e400bc04336f05 (diff) |
Merge github.com:grpc/grpc into one-pass
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/server.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/grpc++/server.h b/include/grpc++/server.h index 0ae27e9e9f..c686474702 100644 --- a/include/grpc++/server.h +++ b/include/grpc++/server.h @@ -80,7 +80,6 @@ class Server GRPC_FINAL : public GrpcLibrary, // ServerBuilder use only Server(ThreadPoolInterface* thread_pool, bool thread_pool_owned); - Server() = delete; // Register a service. This call does not take ownership of the service. // The service must exist for the lifetime of the Server instance. bool RegisterService(RpcService* service); @@ -118,7 +117,7 @@ class Server GRPC_FINAL : public GrpcLibrary, int num_running_cb_; grpc::condition_variable callback_cv_; - std::list<SyncRequest> sync_methods_; + std::list<SyncRequest>* sync_methods_; // Pointer to the c grpc server. grpc_server* const server_; @@ -126,6 +125,8 @@ class Server GRPC_FINAL : public GrpcLibrary, ThreadPoolInterface* thread_pool_; // Whether the thread pool is created and owned by the server. bool thread_pool_owned_; + private: + Server() : server_(NULL) { abort(); } }; } // namespace grpc |