[c++ grpc] Fix std::atomic_flag initialization
This commit is contained in:
Родитель
4720490e14
Коммит
2f5619d9d4
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче