[c++ grpc] Fix std::atomic_flag initialization

This commit is contained in:
Ara Ayvazyan 2017-12-29 10:45:11 -08:00 коммит произвёл Eduardo Salinas
Родитель 4720490e14
Коммит 2f5619d9d4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -183,7 +183,7 @@ namespace bond { namespace ext { namespace gRPC { namespace detail {
grpc::ServerContext _context{}; grpc::ServerContext _context{};
TRequest _request{}; TRequest _request{};
grpc::ServerAsyncResponseWriter<bond::bonded<TResponse>> _responder{ &_context }; grpc::ServerAsyncResponseWriter<bond::bonded<TResponse>> _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 // The ref count intentionally starts at 1, because this instance
// needs to keep itself alive until the response has finished being // needs to keep itself alive until the response has finished being
// sent, regardless of whether there are any outstanding user // sent, regardless of whether there are any outstanding user