message: Update fizz-buzz-multithreaded.cpp
diff: @@ -11,13 +11,13 @@ public:
  for (int i = 1; i <= n_; ++i) {
  {
  unique_lock<mutex> l(m_);
  - wait_.wait(l, [this]() { return curr_ % 4 == 0; });
  + cv_.wait(l, [this]() { return curr_ % 4 == 0; });
  ++curr_;
  if (i % 3 == 0 && i % 5 != 0) {
  printFizz();
  }
  }
  - wait_.notify_all();
  + cv_.notify_all();
  }
  }
  @@ -26,13 +26,13 @@ public:
  for (int i = 1; i <= n_; ++i) {
  {
  unique_lock<mutex> l(m_);
  - wait_.wait(l, [this]() { return curr_ % 4 == 1; });
  + cv_.wait(l, [this]() { return curr_ % 4 == 1; });
  ++curr_;
  if (i % 3 != 0 && i % 5 == 0) {
  printBuzz();
  }
  }
  - wait_.notify_all();
  + cv_.notify_all();
  }
  }
  @@ -41,13 +41,13 @@ public:
  for (int i = 1; i <= n_; ++i) {
  {
  unique_lock<mutex> l(m_);
  - wait_.wait(l, [this]() { return curr_ % 4 == 2; });
  + cv_.wait(l, [this]() { return curr_ % 4 == 2; });
  ++curr_;
  if (i % 3 == 0 && i % 5 == 0) {
  printFizzBuzz();
  }
  }
  - wait_.notify_all();
  + cv_.notify_all();
  }
  }
  @@ -56,13 +56,13 @@ public:
  for (int i = 1; i <= n_; ++i) {
  {
  unique_lock<mutex> l(m_);
  - wait_.wait(l, [this]() { return curr_ % 4 == 3; });
  + cv_.wait(l, [this]() { return curr_ % 4 == 3; });
  ++curr_;
  if (i % 3 != 0 && i % 5 != 0) {
  printNumber(i);
  }
  }
  - wait_.notify_all();
  + cv_.notify_all();
  }
  }
  @@ -70,5 +70,5 @@ private:
  int n_;
  int curr_ = 0;
  mutex m_;
  - condition_variable wait_;
  + condition_variable cv_;
  };
  