aboutsummaryrefslogtreecommitdiff
path: root/stats.h
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2016-02-26 16:51:50 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2016-02-26 16:52:05 +0900
commit8380fb8525adfb580af1df23a54f316ab384be06 (patch)
tree82465ed6478885df816604af1825be817ae5f47f /stats.h
parent3388e696c2c5ec81deb478e446f48b5dc1da2200 (diff)
downloadkati-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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/stats.h b/stats.h
index 190fa57..63acc55 100644
--- a/stats.h
+++ b/stats.h
@@ -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 {