mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
(Runloop data) Move sleeping function call up - unlock mutex afterwards
This commit is contained in:
parent
b68e4237e9
commit
6d89a92952
@ -1007,10 +1007,11 @@ static void data_thread_loop(void *data)
|
|||||||
|
|
||||||
data_runloop_iterate(true, runloop);
|
data_runloop_iterate(true, runloop);
|
||||||
|
|
||||||
slock_unlock(runloop->lock);
|
|
||||||
|
|
||||||
if (!rarch_main_data_active())
|
if (!rarch_main_data_active())
|
||||||
rarch_sleep(10);
|
rarch_sleep(10);
|
||||||
|
|
||||||
|
slock_unlock(runloop->lock);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RARCH_LOG("[Data Thread]: Stopping data thread.\n");
|
RARCH_LOG("[Data Thread]: Stopping data thread.\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user