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()
|
||||
{
|
||||
if (workerThread.isRunning())
|
||||
terminate_thread();
|
||||
workerThread.quit();
|
||||
workerThread.wait();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue