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 /ninja.cc | |
| parent | 3388e696c2c5ec81deb478e446f48b5dc1da2200 (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.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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_; }; |
