From 2f5619d9d42cecd6cc494da02bf68550b62b2ba4 Mon Sep 17 00:00:00 2001 From: Ara Ayvazyan Date: Fri, 29 Dec 2017 10:45:11 -0800 Subject: [PATCH] [c++ grpc] Fix std::atomic_flag initialization --- cpp/inc/bond/ext/grpc/detail/unary_call_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/inc/bond/ext/grpc/detail/unary_call_impl.h b/cpp/inc/bond/ext/grpc/detail/unary_call_impl.h index dc22c133..90e3f042 100644 --- a/cpp/inc/bond/ext/grpc/detail/unary_call_impl.h +++ b/cpp/inc/bond/ext/grpc/detail/unary_call_impl.h @@ -183,7 +183,7 @@ namespace bond { namespace ext { namespace gRPC { namespace detail { grpc::ServerContext _context{}; TRequest _request{}; grpc::ServerAsyncResponseWriter> _responder{ &_context }; - std::atomic_flag _responseSentFlag{}; // Tracks whether any response has been sent yet. + std::atomic_flag _responseSentFlag = ATOMIC_FLAG_INIT; // Tracks whether any response has been sent yet. // The ref count intentionally starts at 1, because this instance // needs to keep itself alive until the response has finished being // sent, regardless of whether there are any outstanding user