diff options
author | 2015-04-28 07:40:40 -0700 | |
---|---|---|
committer | 2015-04-28 07:40:40 -0700 | |
commit | a3c42cdcaf8b89944afc146363e400bc04336f05 (patch) | |
tree | 5f65e89dbc51a575e21c6a202eb7ef98807beb86 /include | |
parent | b33e2d3bc2641ece60e392677d52df57736e7aaa (diff) | |
parent | 30862038340711e36a741ba166b7d198c3ad6b0a (diff) |
Merge pull request #1378 from nicolasnoble/vs2010
Few VS2010 fixes.
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 |