ThreadLocal container that does not rely on thread local storage

This commit is contained in:
Eugene Zhulenev
2019-09-09 15:18:14 -07:00
parent 17226100c5
commit e3dec4dcc1
4 changed files with 385 additions and 6 deletions

View File

@@ -45,11 +45,7 @@
#include <functional>
#include <memory>
#include <utility>
#include "src/util/CXX11Meta.h"
#include "src/util/MaxSizeVector.h"
#include "src/ThreadPool/ThreadLocal.h"
#ifndef EIGEN_THREAD_LOCAL
// There are non-parenthesized calls to "max" in the <unordered_map> header,
// which trigger a check in test/main.h causing compilation to fail.
// We work around the check here by removing the check for max in
@@ -58,7 +54,11 @@
#undef max
#endif
#include <unordered_map>
#endif
#include "src/util/CXX11Meta.h"
#include "src/util/MaxSizeVector.h"
#include "src/ThreadPool/ThreadLocal.h"
#include "src/ThreadPool/ThreadYield.h"
#include "src/ThreadPool/ThreadCancel.h"
#include "src/ThreadPool/EventCount.h"