mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
Merge pull request #3708 from frangarcj/master
(VITA) Increase thread stack, fixes overlays
This commit is contained in:
commit
ad224f2580
@ -136,8 +136,15 @@ sthread_t *sthread_create(void (*thread_func)(void*), void *userdata)
|
|||||||
#ifdef USE_WIN32_THREADS
|
#ifdef USE_WIN32_THREADS
|
||||||
thread->thread = CreateThread(NULL, 0, thread_wrap, data, 0, NULL);
|
thread->thread = CreateThread(NULL, 0, thread_wrap, data, 0, NULL);
|
||||||
thread_created = !!thread->thread;
|
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
|
#else
|
||||||
thread_created = pthread_create(&thread->id, NULL, thread_wrap, data) == 0;
|
thread_created = pthread_create(&thread->id, NULL, thread_wrap, data) == 0;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!thread_created)
|
if (!thread_created)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user