aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer_heap.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-07-05 10:22:42 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-07-05 10:22:42 +0200
commitbd694bda19728f17ff0a9951952e24d8a65e9bc2 (patch)
tree6b19b866b4d789401c089e582b04b2fbddf063c5 /common/placer_heap.cc
parent8f2813279c5888e655ee6f50f198cf8cb11b0b50 (diff)
downloadnextpnr-bd694bda19728f17ff0a9951952e24d8a65e9bc2.tar.gz
nextpnr-bd694bda19728f17ff0a9951952e24d8a65e9bc2.tar.bz2
nextpnr-bd694bda19728f17ff0a9951952e24d8a65e9bc2.zip
Switching from std to boost fix crash
Diffstat (limited to 'common/placer_heap.cc')
-rw-r--r--common/placer_heap.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/placer_heap.cc b/common/placer_heap.cc
index cd800085..d1f5a974 100644
--- a/common/placer_heap.cc
+++ b/common/placer_heap.cc
@@ -37,12 +37,12 @@
#include <Eigen/Core>
#include <Eigen/IterativeLinearSolvers>
#include <boost/optional.hpp>
+#include <boost/thread.hpp>
#include <chrono>
#include <deque>
#include <fstream>
#include <numeric>
#include <queue>
-#include <thread>
#include <tuple>
#include <unordered_map>
#include "log.h"
@@ -154,7 +154,7 @@ class HeAPPlacer
for (int i = 0; i < 4; i++) {
setup_solve_cells();
auto solve_startt = std::chrono::high_resolution_clock::now();
- std::thread xaxis([&]() { build_solve_direction(false, -1); });
+ boost::thread xaxis([&]() { build_solve_direction(false, -1); });
build_solve_direction(true, -1);
xaxis.join();
auto solve_endt = std::chrono::high_resolution_clock::now();
@@ -208,7 +208,7 @@ class HeAPPlacer
build_solve_direction(false, (iter == 0) ? -1 : iter);
build_solve_direction(true, (iter == 0) ? -1 : iter);
} else {
- std::thread xaxis([&]() { build_solve_direction(false, (iter == 0) ? -1 : iter); });
+ boost::thread xaxis([&]() { build_solve_direction(false, (iter == 0) ? -1 : iter); });
build_solve_direction(true, (iter == 0) ? -1 : iter);
xaxis.join();
}