Merge pull request #11431 from gkelly/client-context-init

Add a GrpcLibraryInitializer to client_context.cc
pull/12021/head
Noah Eisen 7 years ago committed by GitHub
commit 6e94eac267
  1. 2
      src/cpp/client/client_context.cc

@ -24,6 +24,7 @@
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include <grpc/support/string_util.h> #include <grpc/support/string_util.h>
#include <grpc++/impl/grpc_library.h>
#include <grpc++/security/credentials.h> #include <grpc++/security/credentials.h>
#include <grpc++/server_context.h> #include <grpc++/server_context.h>
#include <grpc++/support/time.h> #include <grpc++/support/time.h>
@ -38,6 +39,7 @@ class DefaultGlobalClientCallbacks final
void Destructor(ClientContext* context) override {} void Destructor(ClientContext* context) override {}
}; };
static internal::GrpcLibraryInitializer g_gli_initializer;
static DefaultGlobalClientCallbacks g_default_client_callbacks; static DefaultGlobalClientCallbacks g_default_client_callbacks;
static ClientContext::GlobalCallbacks* g_client_callbacks = static ClientContext::GlobalCallbacks* g_client_callbacks =
&g_default_client_callbacks; &g_default_client_callbacks;

Loading…
Cancel
Save