mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix crash from backup observer thread because the condition variable is not yet initialized when the thread starts
This commit is contained in:
parent
bf649df9f2
commit
7ce45c0017
@ -51,11 +51,12 @@ namespace crash {
|
|||||||
bool m_done;
|
bool m_done;
|
||||||
|
|
||||||
std::mutex m_mutex;
|
std::mutex m_mutex;
|
||||||
std::thread m_thread;
|
|
||||||
|
|
||||||
// Used to wakeup the backgroundThread() when we have to stop the
|
// Used to wakeup the backgroundThread() when we have to stop the
|
||||||
// thread that saves backups (i.e. when we are closing the application).
|
// thread that saves backups (i.e. when we are closing the application).
|
||||||
std::condition_variable m_wakeup;
|
std::condition_variable m_wakeup;
|
||||||
|
|
||||||
|
std::thread m_thread;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace crash
|
} // namespace crash
|
||||||
|
Loading…
Reference in New Issue
Block a user