mirror of
https://github.com/libretro/RetroArch.git
synced 2025-03-06 00:48:10 +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);
|
||||
|
||||
slock_unlock(runloop->lock);
|
||||
|
||||
if (!rarch_main_data_active())
|
||||
rarch_sleep(10);
|
||||
|
||||
slock_unlock(runloop->lock);
|
||||
|
||||
}
|
||||
|
||||
RARCH_LOG("[Data Thread]: Stopping data thread.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user