Skip to content

Commit

Permalink
fix for c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Apr 10, 2019
1 parent d5dd094 commit 3c597fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/server/qps.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class qps {
counter_.fetch_add(1, std::memory_order_release);
}

qps() {
qps() : counter_(0) {
thd_ = std::thread([this] {
while (!stop_) {
std::cout << "qps: " << counter_.load(std::memory_order_acquire) << '\n';
Expand All @@ -27,5 +27,5 @@ class qps {
private:
bool stop_ = false;
std::thread thd_;
std::atomic<uint32_t> counter_=0;
std::atomic<uint32_t> counter_;
};

0 comments on commit 3c597fa

Please sign in to comment.