zephyr/lib
Christopher Friedt da0398d198 posix: pthread: consider PTHREAD_EXITED state in pthread_create
If a thread is joined using `pthread_join()`, then the
internal state would be set to `PTHREAD_EXITED`.

Previously, `pthread_create()` would only consider pthreads
with internal state `PTHREAD_TERMINATED` as candidates for new
threads. However, that causes a descriptor leak.

We should be able to reuse a single thread an infinite number
of times.

Here, we also consider threads with internal state
`PTHREAD_EXITED` as candiates in `pthread_create()`.

Fixes #47609

Signed-off-by: Christopher Friedt <cfriedt@fb.com>
2022-07-12 10:16:02 +02:00
..
libc scripts: move gen_strerror_table.py to scripts/build 2022-07-12 10:03:45 +02:00
open-amp lib: open-amp: support resource table on C++ applications 2022-07-06 10:56:01 -05:00
os lib: add mising braces to single line if statements 2022-07-06 11:00:45 -04:00
posix posix: pthread: consider PTHREAD_EXITED state in pthread_create 2022-07-12 10:16:02 +02:00
smf lib: smf: fix include 2022-05-25 11:14:18 +09:00
util lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
CMakeLists.txt lvgl: move the lvgl glue out of the zephyr tree 2022-02-24 11:51:33 +01:00
Kconfig lvgl: move the lvgl glue out of the zephyr tree 2022-02-24 11:51:33 +01:00