Description
Hello,
I m currently facing an issue with the pthread interface.
Despite mutex/barrier and sched_yield some threads never execute after reaching a specific number. Some threads are like frozen (hanged).
The number of running concurrent threads look limited for the homebrew process.
Is there a way to increase this limit ?
I created the following snippet to test this problem.
https://gist.github.com/H0neyBadger/c080dd00c0dd77439bd8d41826d49d0c#file-main-cpp-L131
With thread count to 68, the job is running as expected.
With thread count to 69 (or greater) one or many threads are frozen. The thread barrier is never reached.
I m using nxlink and homebrew netloader to test my projects (with the latest devkitpro pacman on arch).
I spent a lot of time on this issue, and I m out of idea.
I hope you can help
P.S: I initially posted my issue on newlib project
devkitPro/newlib#20