1
0
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:
Miodrag Milanovic
2018-06-22 12:24:50 +02:00
parent 3cd12e3671
commit 5cb893aebd

View File

@@ -61,6 +61,8 @@ TaskManager::TaskManager(Context *ctx) : toTerminate(false)
TaskManager::~TaskManager()
{
if (workerThread.isRunning())
terminate_thread();
workerThread.quit();
workerThread.wait();
}