nuttx/sched/pthread
chao an 09e5dca965 sched/pthread: detached thread should destroy the join info
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>
2024-04-09 13:46:51 +08:00
..
CMakeLists.txt
Make.defs
pthread_barrierwait.c sched/pthread/barrierwait: replace syscall(2) to kernel api 2023-10-25 09:18:55 +08:00
pthread_cancel.c
pthread_completejoin.c sched/pthread: detached thread should destroy the join info 2024-04-09 13:46:51 +08:00
pthread_condbroadcast.c
pthread_condclockwait.c
pthread_condsignal.c
pthread_condwait.c
pthread_create.c sched/tasklist: replace task status list with macro definition 2024-03-21 11:23:46 +09:00
pthread_detach.c sched/pthread: detached thread should destroy the join info 2024-04-09 13:46:51 +08:00
pthread_exit.c
pthread_findjoininfo.c sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
pthread_getaffinity.c
pthread_getschedparam.c
pthread_initialize.c
pthread_join.c sched/pthread: detached thread should destroy the join info 2024-04-09 13:46:51 +08:00
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 sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
pthread_setaffinity.c
pthread_setschedparam.c
pthread_setschedprio.c
pthread_sigmask.c
pthread.h sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00