diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2016-02-26 16:51:50 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2016-02-26 16:52:05 +0900 |
commit | 8380fb8525adfb580af1df23a54f316ab384be06 (patch) | |
tree | 82465ed6478885df816604af1825be817ae5f47f /stats.h | |
parent | 3388e696c2c5ec81deb478e446f48b5dc1da2200 (diff) | |
download | kati-8380fb8525adfb580af1df23a54f316ab384be06.tar.gz |
[C++] Use C++11's threading library again
It seems we can use it even for -static build with
-Wl,--whole-archive -lpthread -Wl,--no-whole-archive -ldl
Diffstat (limited to 'stats.h')
-rw-r--r-- | stats.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -15,10 +15,9 @@ #ifndef STATS_H_ #define STATS_H_ +#include <mutex> #include <string> -#include "mutex.h" - using namespace std; class Stats { @@ -36,7 +35,7 @@ class Stats { const char* name_; double elapsed_; int cnt_; - mutable Mutex mu_; + mutable mutex mu_; }; class ScopedStatsRecorder { |