mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
(runloop_data.c) Some changes
This commit is contained in:
parent
578f59292b
commit
0d16858eff
@ -755,6 +755,8 @@ static void rarch_main_data_deinit(void)
|
|||||||
slock_free(runloop->lock);
|
slock_free(runloop->lock);
|
||||||
slock_free(runloop->cond_lock);
|
slock_free(runloop->cond_lock);
|
||||||
scond_free(runloop->cond);
|
scond_free(runloop->cond);
|
||||||
|
|
||||||
|
runloop->thread_inited = false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -804,6 +806,9 @@ static void rarch_main_data_init(void)
|
|||||||
|
|
||||||
memset(&g_data_runloop, 0, sizeof(g_data_runloop));
|
memset(&g_data_runloop, 0, sizeof(g_data_runloop));
|
||||||
|
|
||||||
|
g_data_runloop.thread_inited = false;
|
||||||
|
g_data_runloop.thread_quit = false;
|
||||||
|
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
if (g_settings.menu.threaded_data_runloop_enable)
|
if (g_settings.menu.threaded_data_runloop_enable)
|
||||||
{
|
{
|
||||||
@ -815,17 +820,12 @@ static void rarch_main_data_init(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_data_runloop.thread = NULL;
|
g_data_runloop.thread = NULL;
|
||||||
|
|
||||||
|
g_data_runloop.thread_inited = (g_data_runloop.thread != NULL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_THREADS
|
|
||||||
g_data_runloop.thread_inited = (g_data_runloop.thread != NULL);
|
|
||||||
#else
|
|
||||||
g_data_runloop.thread_inited = false;
|
|
||||||
g_data_runloop.thread_quit = false;
|
|
||||||
#endif
|
|
||||||
g_data_runloop.inited = true;
|
g_data_runloop.inited = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void rarch_main_data_clear_state(void)
|
void rarch_main_data_clear_state(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user