incubator-nuttx/sched/pthread
zhangyuan21 ff6ba02378 sched/pthread: return ESRCH when thread not found at pthread_detach
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_detach.html

If an implementation detects that the value specified by the thread argument
to pthread_detach() does not refer to a joinable thread, it is recommended
that the function should fail and report an [EINVAL] error.

If an implementation detects use of a thread ID after the end of its lifetime,
it is recommended that the function should fail and report an [ESRCH] error.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-05-12 01:06:23 +08:00
..
Make.defs system: pthread_barrierwait should be moved to kernel space 2023-04-25 15:34:40 +08:00
pthread.h Remove `intr` param from `pthread_mutex_take` 2022-12-08 03:13:44 +08:00
pthread_barrierwait.c system: pthread_barrierwait should be moved to kernel space 2023-04-25 15:34:40 +08:00
pthread_cancel.c libc/stdio: Flush streams in userspace when process exits 2022-12-22 20:16:11 +08:00
pthread_completejoin.c pthread: fix pthread exit error when set DETACHED 2023-01-17 11:09:36 +08:00
pthread_condbroadcast.c sched: Remove the unnecessary (FAR sem_t *) cast 2022-10-29 21:12:40 +02:00
pthread_condclockwait.c signal: remove unused SIGCONDTIMEDOUT 2023-03-23 17:17:25 -06:00
pthread_condsignal.c sched: Remove the unnecessary (FAR sem_t *) cast 2022-10-29 21:12:40 +02:00
pthread_condwait.c pthread: pthread_cond_wait dead lock 2023-04-24 12:53:56 +03:00
pthread_create.c Replace all strncpy with strlcpy 2023-05-08 09:57:01 +02:00
pthread_detach.c sched/pthread: return ESRCH when thread not found at pthread_detach 2023-05-12 01:06:23 +08:00
pthread_exit.c Increase the number of real time signals. Two is not enough. 2023-03-27 16:59:04 +03:00
pthread_findjoininfo.c sched/pthread: change the wrong type cast 2023-02-13 23:17:29 +08:00
pthread_getaffinity.c
pthread_getschedparam.c sched: Remove "0x" prefix preceding "%p" specifier on format string 2022-06-30 22:08:58 +03:00
pthread_initialize.c Remove `intr` param from `pthread_sem_take` 2022-12-08 03:13:44 +08:00
pthread_join.c sched/pthread: change the wrong type cast 2023-02-13 23:17:29 +08:00
pthread_mutex.c Remove `intr` param from `pthread_mutex_take` 2022-12-08 03:13:44 +08:00
pthread_mutexconsistent.c sched: Remove the unnecessary (FAR sem_t *) cast 2022-10-29 21:12:40 +02:00
pthread_mutexdestroy.c sched: Remove the unnecessary (FAR sem_t *) cast 2022-10-29 21:12:40 +02:00
pthread_mutexinconsistent.c
pthread_mutexinit.c sched: Remove the unnecessary (FAR sem_t *) cast 2022-10-29 21:12:40 +02:00
pthread_mutextimedlock.c sched/pthread: repalce sched_lock to enter_critical_section 2023-04-24 01:54:44 +08:00
pthread_mutextrylock.c sched/getpid: replace syscall getpid/tid/ppid() to kernel version 2023-02-02 10:33:01 +08:00
pthread_mutexunlock.c pthread: sched_lock should replace with enter_critical_secion 2023-05-06 23:12:20 +08:00
pthread_release.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
pthread_setaffinity.c
pthread_setschedparam.c sched: Remove "0x" prefix preceding "%p" specifier on format string 2022-06-30 22:08:58 +03:00
pthread_setschedprio.c
pthread_sigmask.c