Пример #1
0
void rarch_task_check(void)
{
#ifdef HAVE_THREADS
   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)
   {
      RARCH_LOG("Switching rarch_task implementation.\n");
      rarch_task_deinit();
   }

   if (impl_current == NULL)
      rarch_task_init();
#endif

   impl_current->gather();
}
Пример #2
0
static void runloop_data_clear_state(void)
{
   runloop_ctl(RUNLOOP_CTL_DATA_DEINIT, NULL);
   rarch_task_init();
}