diff options
author | Catherine <whitequark@whitequark.org> | 2023-02-23 03:25:48 +0000 |
---|---|---|
committer | myrtle <gatecat@ds0.me> | 2023-02-23 09:45:19 +0100 |
commit | ebbaf8c08dbde251aa4f2809f296b20a7a2266a8 (patch) | |
tree | ea9b0bd8636395ae6e4faa956c8f49585e74c7d6 /common/place/detail_place_core.cc | |
parent | 8f0731edc99c828ffa850207c80cfb99651b6ae4 (diff) | |
download | nextpnr-ebbaf8c08dbde251aa4f2809f296b20a7a2266a8.tar.gz nextpnr-ebbaf8c08dbde251aa4f2809f296b20a7a2266a8.tar.bz2 nextpnr-ebbaf8c08dbde251aa4f2809f296b20a7a2266a8.zip |
common: disable parallel refinement only without threads.
Previously it was always disabled on WebAssembly builds.
Diffstat (limited to 'common/place/detail_place_core.cc')
-rw-r--r-- | common/place/detail_place_core.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/place/detail_place_core.cc b/common/place/detail_place_core.cc index 18118fc8..f21d6afd 100644 --- a/common/place/detail_place_core.cc +++ b/common/place/detail_place_core.cc @@ -219,7 +219,7 @@ bool DetailPlacerThreadState::bounds_check(BelId bel) bool DetailPlacerThreadState::bind_move() { -#if !defined(__wasm) +#if !defined(NPNR_DISABLE_THREADS) std::unique_lock<std::shared_timed_mutex> l(g.archapi_mutex); #endif for (auto &entry : moved_cells) { @@ -240,7 +240,7 @@ bool DetailPlacerThreadState::bind_move() bool DetailPlacerThreadState::check_validity() { -#if !defined(__wasm) +#if !defined(NPNR_DISABLE_THREADS) std::shared_lock<std::shared_timed_mutex> l(g.archapi_mutex); #endif bool result = true; @@ -263,7 +263,7 @@ void DetailPlacerThreadState::revert_move() { if (arch_state_dirty) { // If changes to the arch state were made, revert them by restoring original cell bindings -#if !defined(__wasm) +#if !defined(NPNR_DISABLE_THREADS) std::unique_lock<std::shared_timed_mutex> l(g.archapi_mutex); #endif for (auto &entry : moved_cells) { |