mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
(task_overlay.c) Using rarch_main_is_idle here is not thread-safe
This commit is contained in:
parent
cdf3ce309e
commit
701b5609d4
@ -19,7 +19,6 @@
|
||||
#endif
|
||||
|
||||
#include "../input/input_overlay.h"
|
||||
#include "../runloop.h"
|
||||
#include "tasks.h"
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
@ -29,8 +28,6 @@ static slock_t *overlay_lock;
|
||||
void rarch_main_data_overlay_image_upload_iterate(bool is_thread)
|
||||
{
|
||||
input_overlay_t *overlay = input_overlay_get_ptr();
|
||||
if (rarch_main_is_idle())
|
||||
return;
|
||||
if (!overlay)
|
||||
return;
|
||||
|
||||
@ -58,9 +55,6 @@ void rarch_main_data_overlay_iterate(bool is_thread)
|
||||
{
|
||||
input_overlay_t *overlay = input_overlay_get_ptr();
|
||||
|
||||
if (rarch_main_is_idle())
|
||||
return;
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
if (is_thread)
|
||||
slock_lock(overlay_lock);
|
||||
|
Loading…
x
Reference in New Issue
Block a user