mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-08 22:30:51 +00:00
terminate on close
This commit is contained in:
@@ -61,6 +61,8 @@ TaskManager::TaskManager(Context *ctx) : toTerminate(false)
|
||||
|
||||
TaskManager::~TaskManager()
|
||||
{
|
||||
if (workerThread.isRunning())
|
||||
terminate_thread();
|
||||
workerThread.quit();
|
||||
workerThread.wait();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user