The default pthread stack size on Apple is too small for detect_ps2_game (#15235)

This commit is contained in:
warmenhoven 2023-04-27 15:16:36 -04:00 committed by GitHub
parent c400fa761c
commit 5eddcfee48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,6 +229,10 @@ sthread_t *sthread_create_with_priority(void (*thread_func)(void*), void *userda
#if defined(VITA)
pthread_attr_setstacksize(&thread_attr , 0x10000 );
thread_attr_needed = true;
#elif defined(__APPLE__)
// default stack size on apple is 512kb; for ps2 disc scanning and other reasons, we'd like 2MB.
pthread_attr_setstacksize(&thread_attr , 0x200000 );
thread_attr_needed = true;
#endif
#ifdef HAVE_THREAD_ATTR