aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-20 13:15:22 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-20 13:15:22 +0100
commitb4b111a053a5e2aacd036508899277022914ae8f (patch)
tree405b15fc7133b82497a2a0c361c3c17015c3be16 /common/placer1.cc
parentb84a446eeff080715ba0b4b98c14822f0e3f8530 (diff)
downloadnextpnr-b4b111a053a5e2aacd036508899277022914ae8f.tar.gz
nextpnr-b4b111a053a5e2aacd036508899277022914ae8f.tar.bz2
nextpnr-b4b111a053a5e2aacd036508899277022914ae8f.zip
Move pthread yield hack into BaseCtx
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index b58893ce..c8ba71a4 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -29,7 +29,6 @@
#include <list>
#include <map>
#include <ostream>
-#include <pthread.h>
#include <queue>
#include <set>
#include <stdarg.h>
@@ -157,14 +156,7 @@ class SAPlacer
// Main simulated annealing loop
for (int iter = 1;; iter++) {
- // TODO(q3k): unwat
- pthread_yield();
- pthread_yield();
- pthread_yield();
- pthread_yield();
- pthread_yield();
- pthread_yield();
- pthread_yield();
+ ctx->yield();
ctx->lock();
n_move = n_accept = 0;
improved = false;