mirror of https://github.com/YosysHQ/nextpnr.git
terminate on close
This commit is contained in:
parent
3cd12e3671
commit
5cb893aebd
|
|
@ -61,6 +61,8 @@ TaskManager::TaskManager(Context *ctx) : toTerminate(false)
|
||||||
|
|
||||||
TaskManager::~TaskManager()
|
TaskManager::~TaskManager()
|
||||||
{
|
{
|
||||||
|
if (workerThread.isRunning())
|
||||||
|
terminate_thread();
|
||||||
workerThread.quit();
|
workerThread.quit();
|
||||||
workerThread.wait();
|
workerThread.wait();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue