mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
fix racecondition
This commit is contained in:
@@ -50,8 +50,8 @@ void ui::cameraview_panel::render_contents()
|
||||
if (exit_thread) {
|
||||
if (workthread.joinable())
|
||||
workthread.join();
|
||||
workthread = std::thread(&cameraview_panel::workthread_func, this);
|
||||
exit_thread = false;
|
||||
workthread = std::thread(&cameraview_panel::workthread_func, this);
|
||||
}
|
||||
|
||||
if (!texture) {
|
||||
|
||||
Reference in New Issue
Block a user