mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 08:20:02 -05:00
fix: Occasional crash on Linux when closing task manager
This commit is contained in:
@@ -369,7 +369,10 @@ namespace hex {
|
|||||||
thread.request_stop();
|
thread.request_stop();
|
||||||
|
|
||||||
// Wake up all the idle worker threads so they can exit
|
// Wake up all the idle worker threads so they can exit
|
||||||
s_jobCondVar.notify_all();
|
{
|
||||||
|
std::unique_lock lock(s_queueMutex);
|
||||||
|
s_jobCondVar.notify_all();
|
||||||
|
}
|
||||||
|
|
||||||
// Wait for all worker threads to exit
|
// Wait for all worker threads to exit
|
||||||
s_workers.clear();
|
s_workers.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user