mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-20 15:53:28 +00:00
Take out async job code from imageviewer core
This commit is contained in:
parent
8aa429bd67
commit
32353b10bb
@ -9,10 +9,6 @@
|
||||
#include <file/file_path.h>
|
||||
#include <compat/strl.h>
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
#include <rthreads/async_job.h>
|
||||
#endif
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
|
||||
#ifdef RARCH_INTERNAL
|
||||
@ -50,17 +46,6 @@ static bool image_uploaded;
|
||||
static bool slideshow_enable;
|
||||
struct string_list *file_list;
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
static async_job_t *imageviewer_jobs;
|
||||
|
||||
#if 0
|
||||
static int imageviewer_async_job_add(async_task_t task, void *payload)
|
||||
{
|
||||
return async_job_add(imageviewer_jobs, task, payload);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#define DUPE_TEST
|
||||
#endif
|
||||
@ -104,9 +89,6 @@ void IMAGE_CORE_PREFIX(retro_init)(void)
|
||||
image_width = 0;
|
||||
image_height = 0;
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
imageviewer_jobs = async_job_new();
|
||||
#endif
|
||||
}
|
||||
|
||||
void IMAGE_CORE_PREFIX(retro_deinit)(void)
|
||||
@ -116,11 +98,6 @@ void IMAGE_CORE_PREFIX(retro_deinit)(void)
|
||||
image_buffer = NULL;
|
||||
image_width = 0;
|
||||
image_height = 0;
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
async_job_free(imageviewer_jobs);
|
||||
imageviewer_jobs = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
void IMAGE_CORE_PREFIX(retro_set_environment)(retro_environment_t cb)
|
||||
|
Loading…
x
Reference in New Issue
Block a user