Fixing a potential segfault during drawing

This patch moves a lock inside the thread finishing
code such that a race condition of the finish sequence
and a random restart of the threads becomes impossible.
This problem has been observed while randomly zooming
with multiple drawing threads present. It's hard to
reproduce.
This commit is contained in:
Matthias Koefferlein 2026-02-19 22:34:10 +01:00
parent 94b84aad62
commit 95d6b0aca5
1 changed files with 2 additions and 2 deletions

View File

@ -412,9 +412,9 @@ JobBase::stop ()
m_stopping = false;
m_running = false;
m_lock.unlock ();
stopped ();
m_lock.unlock ();
}
void