aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch_place.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-13 12:35:39 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-13 12:35:39 +0100
commit0816f447b768ebe0632f419e9b696714dda4e860 (patch)
tree2001dd1ba033d8cd535c8c72a078f71b5fee757b /ice40/arch_place.cc
parent309a533b7c5eab79addfc2b1733d39c1b48d9aae (diff)
downloadnextpnr-0816f447b768ebe0632f419e9b696714dda4e860.tar.gz
nextpnr-0816f447b768ebe0632f419e9b696714dda4e860.tar.bz2
nextpnr-0816f447b768ebe0632f419e9b696714dda4e860.zip
Make ice40::Arch thread-safe
We move all non-chip data to be private and guard them with an R/W mutex. We then modify all calls that access these fields to lock/shared_lock the mutex as required. Profiling the code before and after is an exercise left to the reader :).
Diffstat (limited to 'ice40/arch_place.cc')
0 files changed, 0 insertions, 0 deletions