Eliminate lambda used as CV predicate

pull/2771/head
Vijay Pai 10 years ago
parent 458faa98ce
commit 784005b4a2
  1. 4
      test/cpp/qps/client.h

@ -210,7 +210,9 @@ class Client {
void EndSwap() {
std::unique_lock<std::mutex> g(mu_);
cv_.wait(g, [this]() { return new_ == nullptr; });
while (new_ != nullptr) {
cv_.wait(g);
};
}
private:

Loading…
Cancel
Save