aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@gmail.com>2017-08-01 07:36:50 -0700
committerGravatar GitHub <noreply@github.com>2017-08-01 07:36:50 -0700
commit6e94eac2678dbef55d287d571077331023843157 (patch)
tree10fe555c4b4bac4e249ed30820e445e173decf60
parent9271621ba9a4e5ed0da3e3f02f4597cfea492339 (diff)
parent9663d0337ee7e53cf2029ae6dfd5d51a434b9b51 (diff)
Merge pull request #11431 from gkelly/client-context-init
Add a GrpcLibraryInitializer to client_context.cc
-rw-r--r--src/cpp/client/client_context.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpp/client/client_context.cc b/src/cpp/client/client_context.cc
index 14cacc8f18..3af8bdc11a 100644
--- a/src/cpp/client/client_context.cc
+++ b/src/cpp/client/client_context.cc
@@ -24,6 +24,7 @@
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
+#include <grpc++/impl/grpc_library.h>
#include <grpc++/security/credentials.h>
#include <grpc++/server_context.h>
#include <grpc++/support/time.h>
@@ -38,6 +39,7 @@ class DefaultGlobalClientCallbacks final
void Destructor(ClientContext* context) override {}
};
+static internal::GrpcLibraryInitializer g_gli_initializer;
static DefaultGlobalClientCallbacks g_default_client_callbacks;
static ClientContext::GlobalCallbacks* g_client_callbacks =
&g_default_client_callbacks;