aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-20 18:34:59 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-20 18:34:59 +0100
commit0311a27a53922783363ab607ca8f3832980990c6 (patch)
tree9cb3555b233b6224d946a263dceb1ebff6569d80 /gui
parent5d0dbe9db961f6dbd2494bd8ab730d8926d01626 (diff)
downloadnextpnr-0311a27a53922783363ab607ca8f3832980990c6.tar.gz
nextpnr-0311a27a53922783363ab607ca8f3832980990c6.tar.bz2
nextpnr-0311a27a53922783363ab607ca8f3832980990c6.zip
Use UI lock for yielding
Diffstat (limited to 'gui')
-rw-r--r--gui/fpgaviewwidget.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/fpgaviewwidget.cc b/gui/fpgaviewwidget.cc
index b990baca..86aae25d 100644
--- a/gui/fpgaviewwidget.cc
+++ b/gui/fpgaviewwidget.cc
@@ -426,7 +426,7 @@ void FPGAViewWidget::renderLines(void)
if (ctx_ == nullptr)
return;
- ctx_->lock();
+ ctx_->lock_ui();
// For now, collapse any decal changes into change of all decals.
// TODO(q3k): fix this
@@ -475,7 +475,7 @@ void FPGAViewWidget::renderLines(void)
groupDecals.push_back(ctx_->getGroupDecal(group));
}
}
- ctx_->unlock();
+ ctx_->unlock_ui();
rendererArgsLock_.lock();
auto selectedItems = rendererArgs_->selectedItems;