aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/ThreadPool
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-08-23 12:11:58 -0700
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-08-23 12:11:58 -0700
commit6cedc5a9b38d6ddda69d532b28dff9ee5c2d1c04 (patch)
tree0787128a0411894e196e86766f53446379f44513 /unsupported/Eigen/CXX11/src/ThreadPool
parent6e0464004a7bcd666d3b5962c3c999ff78f416f1 (diff)
rename mu.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/ThreadPool')
-rw-r--r--unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h
index 1ac4de3b5..d710faa94 100644
--- a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h
+++ b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h
@@ -169,16 +169,16 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface {
EventCount ec_;
#ifndef EIGEN_THREAD_LOCAL
std::unique_ptr<Barrier> init_barrier_;
- std::mutex mu; // Protects per_thread_map_.
+ std::mutex per_thread_map_mutex_; // Protects per_thread_map_.
std::unordered_map<uint64_t, std::unique_ptr<PerThread>> per_thread_map_;
#endif
// Main worker thread loop.
void WorkerLoop(int thread_id) {
#ifndef EIGEN_THREAD_LOCAL
- mu.lock();
+ per_thread_map_mutex_.lock();
eigen_assert(per_thread_map_.emplace(GlobalThreadIdHash(), new PerThread()).second);
- mu.unlock();
+ per_thread_map_mutex_.unlock();
init_barrier_->Notify();
init_barrier_->Wait();
#endif