コード例 #1
0
ファイル: tasks.c プロジェクト: matthijsberk/RetroArch
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
ファイル: runloop.c プロジェクト: Sotsukun/RetroArch
static void runloop_data_clear_state(void)
{
   runloop_ctl(RUNLOOP_CTL_DATA_DEINIT, NULL);
   rarch_task_init();
}