From ba619c1582452915c4c537e06f1881feab7f8ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Jos=C3=A9=20Garc=C3=ADa=20Garc=C3=ADa?= Date: Sun, 2 Oct 2016 15:58:44 +0200 Subject: [PATCH] (VITA) Increase thread stack, fixes overlays --- libretro-common/rthreads/rthreads.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libretro-common/rthreads/rthreads.c b/libretro-common/rthreads/rthreads.c index 6f887c7424..d24cd91e12 100644 --- a/libretro-common/rthreads/rthreads.c +++ b/libretro-common/rthreads/rthreads.c @@ -136,8 +136,15 @@ sthread_t *sthread_create(void (*thread_func)(void*), void *userdata) #ifdef USE_WIN32_THREADS thread->thread = CreateThread(NULL, 0, thread_wrap, data, 0, NULL); thread_created = !!thread->thread; +#else +#if defined(VITA) + pthread_attr_t thread_attr; + pthread_attr_init(&thread_attr); + pthread_attr_setstacksize(&thread_attr , 0x10000 ); + thread_created = pthread_create(&thread->id, &thread_attr, thread_wrap, data) == 0; #else thread_created = pthread_create(&thread->id, NULL, thread_wrap, data) == 0; +#endif #endif if (!thread_created)