aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorSerge Bazanski <serge@bazanski.pl>2018-07-17 19:16:26 +0100
committerSerge Bazanski <serge@bazanski.pl>2018-07-17 19:16:26 +0100
commit03508faabfc2f5b76039cfd13d02a341baa848a4 (patch)
treec896745d0e1555e224d5a7c67b52e7ccfb6e30dd /common/placer1.cc
parent2f5b94fe309619c221c3e1ea5aa48a4523bd3156 (diff)
downloadnextpnr-03508faabfc2f5b76039cfd13d02a341baa848a4.tar.gz
nextpnr-03508faabfc2f5b76039cfd13d02a341baa848a4.tar.bz2
nextpnr-03508faabfc2f5b76039cfd13d02a341baa848a4.zip
WIP.
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index b229616c..b58893ce 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -29,6 +29,7 @@
#include <list>
#include <map>
#include <ostream>
+#include <pthread.h>
#include <queue>
#include <set>
#include <stdarg.h>
@@ -156,6 +157,14 @@ 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->lock();
n_move = n_accept = 0;
improved = false;