Adds a ThreadPool and a thread-safe ConcurrentQueue.

This is in preparation for adding support for a C++11 based parallel
for implementation. The code is behind CERES_USE_CXX11_THREADS which
is not exposed to the user yet.

Tested by building with and without CERES_USE_CXX11_THREADS defined
and the tests pass.

Change-Id: I60f5730fa055feeb0ee0fa6c980633aebd8d87b4
This commit is contained in:
Mike Vitus
2018-01-26 13:51:26 -08:00
parent 523de29803
commit 27789c0d96
8 changed files with 898 additions and 0 deletions
+1
View File
@@ -113,6 +113,7 @@ CERES_SRCS = ["internal/ceres/" + filename for filename in [
"stringprintf.cc",
"subset_preconditioner.cc",
"suitesparse.cc",
"thread_pool.cc",
"thread_token_provider.cc",
"triplet_sparse_matrix.cc",
"trust_region_minimizer.cc",