aboutsummaryrefslogtreecommitdiffstats
path: root/gui/ice40/worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ice40/worker.cc')
-rw-r--r--gui/ice40/worker.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/gui/ice40/worker.cc b/gui/ice40/worker.cc
index 3854c67f..9549f659 100644
--- a/gui/ice40/worker.cc
+++ b/gui/ice40/worker.cc
@@ -10,6 +10,8 @@
#include "route.h"
#include "timing.h"
+NEXTPNR_NAMESPACE_BEGIN
+
struct WorkerInterruptionRequested
{
};
@@ -22,7 +24,7 @@ Worker::Worker(Context *_ctx, TaskManager *parent) : ctx(_ctx)
parent->clearTerminate();
throw WorkerInterruptionRequested();
}
- while (parent->isPaused()){
+ while (parent->isPaused()) {
QThread::sleep(1);
}
};
@@ -64,7 +66,7 @@ TaskManager::TaskManager(Context *ctx) : toTerminate(false), toPause(false)
TaskManager::~TaskManager()
{
- if (workerThread.isRunning())
+ if (workerThread.isRunning())
terminate_thread();
workerThread.quit();
workerThread.wait();
@@ -105,4 +107,6 @@ bool TaskManager::isPaused()
{
QMutexLocker locker(&mutex);
return toPause;
-} \ No newline at end of file
+}
+
+NEXTPNR_NAMESPACE_END