mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Revert "(Rnunloop data) Reimplement sleeping"
This reverts commit becf83a1b305b11557f03754c1f0f623fd504721.
This commit is contained in:
parent
6470253f0d
commit
228bb94e9f
@ -158,8 +158,12 @@ static void data_thread_loop(void *data)
|
||||
|
||||
data_runloop_iterate(true);
|
||||
|
||||
while (runloop->thread_sleeping)
|
||||
scond_wait(runloop->cond, runloop->lock);
|
||||
if (!rarch_main_data_active())
|
||||
{
|
||||
runloop->thread_sleeping = true;
|
||||
while(runloop->thread_sleeping)
|
||||
scond_wait(runloop->cond, runloop->lock);
|
||||
}
|
||||
|
||||
slock_unlock(runloop->lock);
|
||||
|
||||
@ -218,8 +222,7 @@ void rarch_main_data_iterate(void)
|
||||
{
|
||||
if (!g_data_runloop.thread_inited)
|
||||
rarch_main_data_thread_init();
|
||||
|
||||
if (rarch_main_data_active())
|
||||
else if (g_data_runloop.thread_sleeping)
|
||||
{
|
||||
slock_lock(g_data_runloop.cond_lock);
|
||||
g_data_runloop.thread_sleeping = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user