Merge pull request #18221 from markdroth/gpr_once_fix

Fix gpr_once initialization.
reviewable/pr18021/r8^2
Abhishek Kumar 6 years ago committed by GitHub
commit 280c0287a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/ext/transport/chttp2/client/insecure/channel_create.cc
  2. 2
      src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc

@ -73,7 +73,7 @@ class Chttp2InsecureClientChannelFactory : public ClientChannelFactory {
namespace {
grpc_core::Chttp2InsecureClientChannelFactory* g_factory;
gpr_once g_factory_once;
gpr_once g_factory_once = GPR_ONCE_INIT;
void FactoryInit() {
g_factory = grpc_core::New<grpc_core::Chttp2InsecureClientChannelFactory>();

@ -175,7 +175,7 @@ class Chttp2SecureClientChannelFactory : public ClientChannelFactory {
namespace {
grpc_core::Chttp2SecureClientChannelFactory* g_factory;
gpr_once g_factory_once;
gpr_once g_factory_once = GPR_ONCE_INIT;
void FactoryInit() {
g_factory = grpc_core::New<grpc_core::Chttp2SecureClientChannelFactory>();

Loading…
Cancel
Save