message: [c++ grpc] Fix atomic_flag init. in io_manager
diff: @@ -52,11 +52,7 @@ namespace bond { namespace ext { namespace gRPC {
  /// hardware's available concurrency will be started.
  explicit io_manager(size_t numThreads = USE_HARDWARE_CONC)
  : _cq(new grpc::CompletionQueue),
  - _numThreads(compute_real_num_threads(numThreads)),
  - _threads(),
  - _isShutdownRequested(),
  - _isShutdownInProgress(),
  - _shutdownCompleted()
  + _numThreads(compute_real_num_threads(numThreads))
  {
  BOOST_ASSERT(_cq);
  start();
  @@ -71,11 +67,7 @@ namespace bond { namespace ext { namespace gRPC {
  /// hardware's available concurrency will be started.
  explicit io_manager(std::unique_ptr<grpc::CompletionQueue> cq, size_t numThreads = USE_HARDWARE_CONC)
  : _cq(std::move(cq)),
  - _numThreads(compute_real_num_threads(numThreads)),
  - _threads(),
  - _isShutdownRequested(),
  - _isShutdownInProgress(),
  - _shutdownCompleted()
  + _numThreads(compute_real_num_threads(numThreads))
  {
  BOOST_ASSERT(_cq);
  start();
  @@ -88,11 +80,7 @@ namespace bond { namespace ext { namespace gRPC {
  /// hardware's available concurrency will be started.
  io_manager(size_t numThreads, delay_start_tag)
  : _cq(new grpc::CompletionQueue),
  - _numThreads(compute_real_num_threads(numThreads)),
  - _threads(),
  - _isShutdownRequested(),
  - _isShutdownInProgress(),
  - _shutdownCompleted()
  + _numThreads(compute_real_num_threads(numThreads))
  {
  BOOST_ASSERT(_cq);
  @@ -108,11 +96,7 @@ namespace bond { namespace ext { namespace gRPC {
  /// hardware's available concurrency will be started.
  io_manager(std::unique_ptr<grpc::CompletionQueue> cq, size_t numThreads, delay_start_tag)
  : _cq(std::move(cq)),
  - _numThreads(compute_real_num_threads(numThreads)),
  - _threads(),
  - _isShutdownRequested(),
  - _isShutdownInProgress(),
  - _shutdownCompleted()
  + _numThreads(compute_real_num_threads(numThreads))
  {
  BOOST_ASSERT(_cq);
  @@ -235,8 +219,8 @@ namespace bond { namespace ext { namespace gRPC {
  size_t _numThreads;
  std::vector<std::thread> _threads;
  - std::atomic_flag _isShutdownRequested;
  - std::atomic_flag _isShutdownInProgress;
  + std::atomic_flag _isShutdownRequested = ATOMIC_FLAG_INIT;
  + std::atomic_flag _isShutdownInProgress = ATOMIC_FLAG_INIT;
  bond::ext::detail::event _shutdownCompleted;
  };
  