mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix destructor race in Job
This commit is contained in:
@@ -80,6 +80,10 @@ void Job::doJob ()
|
||||
m_loadEvent->reName (mName);
|
||||
|
||||
mJob (*this);
|
||||
|
||||
// Destroy the lambda, otherwise we won't include
|
||||
// its duration in the time measurement
|
||||
mJob = std::function<void(Job&)>();
|
||||
}
|
||||
|
||||
void Job::rename (std::string const& newName)
|
||||
|
||||
Reference in New Issue
Block a user