mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(PSP) Add thread support
This commit is contained in:
parent
9596cc2866
commit
66157307d8
@ -4,7 +4,7 @@ DEBUG = 0
|
||||
HAVE_KERNEL_PRX = 1
|
||||
HAVE_LOGGER = 0
|
||||
HAVE_FILE_LOGGER = 0
|
||||
HAVE_THREADS = 0
|
||||
HAVE_THREADS = 1
|
||||
BIG_STACK = 0
|
||||
WHOLE_ARCHIVE_LINK = 0
|
||||
|
||||
@ -33,6 +33,7 @@ LIBS = $(WHOLE_START) -lretro_psp1 $(WHOLE_END) -lstdc++ -lpspgu -lpspgum -lm -l
|
||||
|
||||
ifeq ($(HAVE_THREADS), 1)
|
||||
RARCH_DEFINES += -DHAVE_THREADS
|
||||
LIBS += -lpthread-psp
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_FILE_LOGGER), 1)
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include <psp2/power.h>
|
||||
#include <psp2/sysmodule.h>
|
||||
#include <psp2/appmgr.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "../../bootstrap/vita/sbrk.c"
|
||||
#include "../../bootstrap/vita/threading.c"
|
||||
@ -39,6 +38,8 @@
|
||||
#include <pspsdk.h>
|
||||
#endif
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include <string/stdstring.h>
|
||||
#include <boolean.h>
|
||||
#include <file/file_path.h>
|
||||
@ -288,7 +289,6 @@ static void frontend_psp_init(void *data)
|
||||
#ifdef VITA
|
||||
scePowerSetArmClockFrequency(444);
|
||||
sceSysmoduleLoadModule(SCE_SYSMODULE_NET);
|
||||
pthread_init();
|
||||
#else
|
||||
(void)data;
|
||||
/* initialize debug screen */
|
||||
@ -300,6 +300,7 @@ static void frontend_psp_init(void *data)
|
||||
pspFpuSetEnable(0); /* disable FPU exceptions */
|
||||
scePowerSetClockFrequency(333,333,166);
|
||||
#endif
|
||||
pthread_init();
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -45,8 +45,6 @@
|
||||
#endif
|
||||
#elif defined(GEKKO)
|
||||
#include "gx_pthread.h"
|
||||
#elif defined(PSP)
|
||||
#include "psp_pthread.h"
|
||||
#elif defined(__CELLOS_LV2__)
|
||||
#include <pthread.h>
|
||||
#include <sys/sys_time.h>
|
||||
|
Loading…
Reference in New Issue
Block a user