09e5dca965
In order to ensure the detached thread obtain the correct return value from pthread_join()/pthread_cancel(), the detached thread will create joininfo to save the detached status after thread destroyed. If there are too many of detached threads in the process group, the joininfo will consume too much memory. This is not friendly to embedded MCU devices. This commit keep the semantics as #11898 was introduced, will no longer save joininfo for detached threads to avoid wasting memory. Signed-off-by: chao an <anchao@lixiang.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Make.defs | ||
pthread_barrierwait.c | ||
pthread_cancel.c | ||
pthread_completejoin.c | ||
pthread_condbroadcast.c | ||
pthread_condclockwait.c | ||
pthread_condsignal.c | ||
pthread_condwait.c | ||
pthread_create.c | ||
pthread_detach.c | ||
pthread_exit.c | ||
pthread_findjoininfo.c | ||
pthread_getaffinity.c | ||
pthread_getschedparam.c | ||
pthread_initialize.c | ||
pthread_join.c | ||
pthread_mutex.c | ||
pthread_mutexconsistent.c | ||
pthread_mutexdestroy.c | ||
pthread_mutexinconsistent.c | ||
pthread_mutexinit.c | ||
pthread_mutextimedlock.c | ||
pthread_mutextrylock.c | ||
pthread_mutexunlock.c | ||
pthread_release.c | ||
pthread_setaffinity.c | ||
pthread_setschedparam.c | ||
pthread_setschedprio.c | ||
pthread_sigmask.c | ||
pthread.h |