mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
ff6ba02378
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>