Sree Kuchibhotla %!s(int64=8) %!d(string=hai) anos
pai
achega
057230b0cd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      include/grpc++/impl/codegen/completion_queue.h

+ 3 - 1
include/grpc++/impl/codegen/completion_queue.h

@@ -103,7 +103,9 @@ class CompletionQueue : private GrpcLibraryCodegen {
  public:
   /// Default constructor. Implicitly creates a \a grpc_completion_queue
   /// instance.
-  CompletionQueue() : CompletionQueue(false) {}
+  CompletionQueue() : CompletionQueue(false) {
+    InitialAvalanching();  // reserve this for the future shutdown
+  }
 
   /// Wrap \a take, taking ownership of the instance.
   ///