fix mac RTL and app termination deadlock
This commit is contained in:
@@ -679,6 +679,9 @@ void App::terminate()
|
||||
{
|
||||
LOG("App::terminate");
|
||||
NodeStrokePreview::terminate_renderer();
|
||||
rec_stop();
|
||||
|
||||
async_start();
|
||||
TextureManager::invalidate();
|
||||
ShaderManager::invalidate();
|
||||
layout.unload();
|
||||
@@ -693,7 +696,7 @@ void App::terminate()
|
||||
floating_color.reset();
|
||||
floating_layers.reset();
|
||||
floating_picker.reset();
|
||||
rec_stop();
|
||||
async_end();
|
||||
}
|
||||
|
||||
void App::update_memory_usage(size_t bytes)
|
||||
@@ -787,7 +790,9 @@ void App::rec_stop()
|
||||
rec_cv.notify_all();
|
||||
if (rec_thread.joinable())
|
||||
rec_thread.join();
|
||||
async_start();
|
||||
update_rec_frames();
|
||||
async_end();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user