diff options
author | Sree Kuchibhotla <sreek@google.com> | 2017-03-30 13:20:00 -0700 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2017-03-30 13:20:00 -0700 |
commit | e04906dc54e95f16bea7146459dfc1ab599b3826 (patch) | |
tree | 00d308fc6b431548a23e1a619ea6d77187f7dde0 /src/cpp/common | |
parent | 359ffd83e01e236edd8d96b8ff7e9c326354c6fb (diff) | |
parent | bea49665d418b69597b6bc058dd78744c0fa494d (diff) |
Merge branch 'master' into cq_create_api_changes
Diffstat (limited to 'src/cpp/common')
-rw-r--r-- | src/cpp/common/completion_queue_cc.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cpp/common/completion_queue_cc.cc b/src/cpp/common/completion_queue_cc.cc index 0408a41085..14c51f63c5 100644 --- a/src/cpp/common/completion_queue_cc.cc +++ b/src/cpp/common/completion_queue_cc.cc @@ -43,7 +43,12 @@ namespace grpc { static internal::GrpcLibraryInitializer g_gli_initializer; -CompletionQueue::CompletionQueue(grpc_completion_queue* take) : cq_(take) { +// 'CompletionQueue' constructor can safely call GrpcLibraryCodegen(false) here +// i.e not have GrpcLibraryCodegen call grpc_init(). This is because, to create +// a 'grpc_completion_queue' instance (which is being passed as the input to +// this constructor), one must have already called grpc_init(). +CompletionQueue::CompletionQueue(grpc_completion_queue* take) + : GrpcLibraryCodegen(false), cq_(take) { InitialAvalanching(); } |