This commit is contained in:
twinaphex 2015-12-10 21:22:17 +01:00
parent 25f4b89f1f
commit fef0d99351

View File

@ -373,10 +373,12 @@ void rarch_task_deinit(void)
void rarch_task_check(void)
{
#ifdef HAVE_THREADS
bool current_threaded = impl_current == &impl_threaded;
bool want_threaded = config_get_ptr()->threaded_data_runloop_enable;
settings_t *settings = config_get_ptr();
bool current_threaded = (impl_current == &impl_threaded);
bool want_threaded = settings->threaded_data_runloop_enable;
if (want_threaded != current_threaded) {
if (want_threaded != current_threaded)
{
RARCH_LOG("Switching rarch_task implementation.\n");
rarch_task_deinit();
}