mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Reintroduce deinit and get rid of slock_unlock at bottom of threaded_worker function
This commit is contained in:
parent
51e2da2cbd
commit
a2c435ab2c
@ -456,8 +456,6 @@ static void threaded_worker(void *userdata)
|
|||||||
retro_sleep(10);
|
retro_sleep(10);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
slock_unlock(running_lock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void retro_task_threaded_init(void)
|
static void retro_task_threaded_init(void)
|
||||||
|
@ -1051,6 +1051,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
|
|||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
threaded_enable = settings->threaded_data_runloop_enable;
|
threaded_enable = settings->threaded_data_runloop_enable;
|
||||||
#endif
|
#endif
|
||||||
|
task_queue_ctl(TASK_QUEUE_CTL_DEINIT, NULL);
|
||||||
task_queue_ctl(TASK_QUEUE_CTL_INIT, &threaded_enable);
|
task_queue_ctl(TASK_QUEUE_CTL_INIT, &threaded_enable);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user