Added protected default constructor

pull/14517/head
makdharma 7 years ago
parent dbf4b71a00
commit 626a65e877
  1. 5
      include/grpcpp/impl/codegen/completion_queue.h
  2. 2
      include/grpcpp/server.h

@ -366,6 +366,10 @@ class ServerCompletionQueue : public CompletionQueue {
bool IsFrequentlyPolled() { return polling_type_ != GRPC_CQ_NON_LISTENING; }
protected:
// Default constructor
ServerCompletionQueue() {}
private:
/// \param is_frequently_polled Informs the GRPC library about whether the
/// server completion queue would be actively polled (by calling Next() or
/// AsyncNext()). By default all server completion queues are assumed to be
@ -375,7 +379,6 @@ class ServerCompletionQueue : public CompletionQueue {
GRPC_CQ_CURRENT_VERSION, GRPC_CQ_NEXT, polling_type}),
polling_type_(polling_type) {}
private:
grpc_cq_polling_type polling_type_;
friend class ServerBuilder;
};

@ -204,7 +204,7 @@ 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_

Loading…
Cancel
Save