From 7b0b1a12fa6fc7937ba1d5dc2c7fe1a3466e0b67 Mon Sep 17 00:00:00 2001 From: Ivan Epifanov Date: Wed, 23 Dec 2020 17:26:52 +0300 Subject: [PATCH] Update thread api to 2.0.14 --- src/thread/vita/SDL_systhread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/thread/vita/SDL_systhread.c b/src/thread/vita/SDL_systhread.c index d2375fd9c..da8588c08 100644 --- a/src/thread/vita/SDL_systhread.c +++ b/src/thread/vita/SDL_systhread.c @@ -37,11 +37,11 @@ static int ThreadEntry(SceSize args, void *argp) { - SDL_RunThread(*(void **) argp); + SDL_RunThread(*(SDL_Thread **) argp); return 0; } -int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) +int SDL_SYS_CreateThread(SDL_Thread *thread) { SceKernelThreadInfo info; int priority = 32; @@ -59,7 +59,7 @@ int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) return SDL_SetError("sceKernelCreateThread() failed"); } - sceKernelStartThread(thread->handle, 4, &args); + sceKernelStartThread(thread->handle, 4, &thread); return 0; }