mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Revert "Reimplement threading init for data runloop - data runloop"
This reverts commit 93720ff8c76810a05b6d133a9ba998ba112a3670.
This commit is contained in:
parent
93720ff8c7
commit
7c2cbf278a
@ -181,10 +181,10 @@ static void data_thread_loop(void *data)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
static bool rarch_main_data_thread_init(void)
|
||||
static void rarch_main_data_thread_init(void)
|
||||
{
|
||||
if (g_data_runloop.thread_inited)
|
||||
return false;
|
||||
if (!g_data_runloop.thread_inited)
|
||||
return;
|
||||
|
||||
g_data_runloop.lock = slock_new();
|
||||
g_data_runloop.cond_lock = slock_new();
|
||||
@ -205,11 +205,10 @@ static bool rarch_main_data_thread_init(void)
|
||||
g_data_runloop.thread_code = THREAD_CODE_ALIVE;
|
||||
slock_unlock(g_data_runloop.lock);
|
||||
|
||||
return true;
|
||||
return;
|
||||
|
||||
error:
|
||||
data_runloop_thread_deinit();
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -364,7 +363,9 @@ void rarch_main_data_msg_queue_push(unsigned type,
|
||||
#ifdef HAVE_THREADS
|
||||
if (settings->threaded_data_runloop_enable)
|
||||
{
|
||||
if (!rarch_main_data_thread_init())
|
||||
if (!g_data_runloop.thread_inited)
|
||||
rarch_main_data_thread_init();
|
||||
else
|
||||
{
|
||||
slock_lock(g_data_runloop.cond_lock);
|
||||
scond_signal(g_data_runloop.cond);
|
||||
|
Loading…
x
Reference in New Issue
Block a user