LWP_CreateThread fails to create 11th thread [RESOLVED] April 14, 2014 11:00PM | Registered: 14 years ago Posts: 363 |
s32 result = LWP_CreateThread(&main_thread[current_thread], thread_func, NULL, 0, STACKSIZE, 66+current_thread); if (result == 0) return true; if(threading_debug) printf("thread failed to create.\n"); return false;
Re: LWP_CreateThread fails to create 11th thread April 15, 2014 02:27AM | Moderator Registered: 15 years ago Posts: 686 |
Re: LWP_CreateThread fails to create 11th thread April 15, 2014 03:38AM | Registered: 14 years ago Posts: 363 |
#define THREADMAX 8 #define STACKSIZE 8*1024 static lwp_t main_thread[THREADMAX]; lwpq_t thread_queue; static u8 stack1[THREADMAX][STACKSIZE] ATTRIBUTE_ALIGN (32);
s32 result = LWP_CreateThread(&main_thread[current_thread], thread_func, NULL, stack1[current_thread], STACKSIZE, 63+current_thread);
Re: LWP_CreateThread fails to create 11th thread April 15, 2014 07:09PM | Registered: 14 years ago Posts: 363 |
Re: LWP_CreateThread fails to create 11th thread April 16, 2014 11:42PM | Registered: 14 years ago Posts: 363 |