mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] ds: add stopWaitFrame to terminate waitFrame early
This is used on exit to unblock the render thread.
This commit is contained in:
@@ -1163,6 +1163,8 @@ static void lg_shutdown(void)
|
||||
g_state.state = APP_STATE_SHUTDOWN;
|
||||
if (t_render)
|
||||
{
|
||||
if (g_state.ds->stopWaitFrame)
|
||||
g_state.ds->stopWaitFrame();
|
||||
lgSignalEvent(e_startup);
|
||||
lgSignalEvent(g_state.frameEvent);
|
||||
lgJoinThread(t_render, NULL);
|
||||
|
Reference in New Issue
Block a user