Reintroduce deinit and get rid of slock_unlock at bottom of threaded_worker function

This commit is contained in:
Twinaphex 2016-07-06 16:35:00 +02:00
parent 51e2da2cbd
commit a2c435ab2c
2 changed files with 1 additions and 2 deletions

View File

@ -456,8 +456,6 @@ static void threaded_worker(void *userdata)
retro_sleep(10);
#endif
}
slock_unlock(running_lock);
}
static void retro_task_threaded_init(void)

View File

@ -1051,6 +1051,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
#ifdef HAVE_THREADS
threaded_enable = settings->threaded_data_runloop_enable;
#endif
task_queue_ctl(TASK_QUEUE_CTL_DEINIT, NULL);
task_queue_ctl(TASK_QUEUE_CTL_INIT, &threaded_enable);
}
break;