aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
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;