aboutsummaryrefslogtreecommitdiff
path: root/ninja.cc
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 /ninja.cc
parent3388e696c2c5ec81deb478e446f48b5dc1da2200 (diff)
[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 'ninja.cc')
-rw-r--r--ninja.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ninja.cc b/ninja.cc
index 9d9ce78..4a5d014 100644
--- a/ninja.cc
+++ b/ninja.cc
@@ -569,7 +569,7 @@ class NinjaGenerator {
if (use_local_pool)
*o << " pool = local_pool\n";
if (node->is_default_target) {
- UniqueLock<Mutex> lock(mu_);
+ unique_lock<mutex> lock(mu_);
default_target_ = node;
}
}
@@ -787,7 +787,7 @@ class NinjaGenerator {
const double start_time_;
vector<NinjaNode*> nodes_;
- Mutex mu_;
+ mutex mu_;
const DepNode* default_target_;
};