From d327a0afbb6a92553647444c0baaeb4971a0847b Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Sat, 14 Jul 2018 19:01:33 +0100 Subject: Revert "Make ice40::Arch thread-safe" This reverts commit 0816f447b768ebe0632f419e9b696714dda4e860. --- ice40/arch.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'ice40/arch.cc') diff --git a/ice40/arch.cc b/ice40/arch.cc index 74353fe6..adc37dbd 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -241,7 +241,6 @@ IdString Arch::archArgsToId(ArchArgs args) const BelId Arch::getBelByName(IdString name) const { - boost::lock_guard lock(mtx_); BelId ret; if (bel_by_name.empty()) { @@ -277,7 +276,6 @@ BelRange Arch::getBelsAtSameTile(BelId bel) const WireId Arch::getWireBelPin(BelId bel, PortPin pin) const { WireId ret; - boost::shared_lock_guard lock(mtx_); NPNR_ASSERT(bel != BelId()); @@ -298,7 +296,6 @@ WireId Arch::getWireBelPin(BelId bel, PortPin pin) const WireId Arch::getWireByName(IdString name) const { WireId ret; - boost::shared_lock_guard lock(mtx_); if (wire_by_name.empty()) { for (int i = 0; i < chip_info->num_wires; i++) @@ -317,7 +314,6 @@ WireId Arch::getWireByName(IdString name) const PipId Arch::getPipByName(IdString name) const { PipId ret; - boost::shared_lock_guard lock(mtx_); if (pip_by_name.empty()) { for (int i = 0; i < chip_info->num_pips; i++) { @@ -376,8 +372,6 @@ std::string Arch::getBelPackagePin(BelId bel) const // ----------------------------------------------------------------------- -// TODO(cliffordvienna): lock all of this - GroupId Arch::getGroupByName(IdString name) const { for (auto g : getGroups()) @@ -503,7 +497,6 @@ DecalXY Arch::getGroupDecal(GroupId group) const std::vector Arch::getDecalGraphics(DecalId decal) const { - boost::shared_lock_guard lock(mtx_); std::vector ret; if (decal.type == DecalId::TYPE_FRAME) { -- cgit v1.2.3