zephyr/lib
Christopher Friedt 0014dd05f0 lib: os: add k_condvar for each fdtable entry
Complement the `struct k_mutex` in each fdtable entry
with a `struct k_condvar`. The reasoning for this should be
self-evident.

For a bit of history, `fdtable` was introduced in
commit 06eb489c45 ("kernel: add condition variables")
which predates `struct k_condvar`, introduced in
commit f484bbaa26 ("lib: posix: Implement generic file descriptor table")
by almost 2 years.

Additionally, provide a new accessor function,
`z_get_obj_lock_and_cond()`, that (optionally) gets the mutex
and condition variable associated with the provided object and
vtable.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-02 18:45:46 -04:00
..
cpp lib/cpp: Remove CONFIG_CPP_MAIN 2023-05-31 06:16:35 -04:00
hash lib: hashmap: Move hash table files lib/hashmap 2023-03-02 12:03:07 -05:00
libc libc: minimal: Add 'break' to suppress fall-through error in atoi.c 2023-05-31 14:41:25 -04:00
open-amp open-amp: Fix compilation with cache enabled 2023-04-18 12:12:56 +02:00
os lib: os: add k_condvar for each fdtable entry 2023-06-02 18:45:46 -04:00
posix iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
smf lib: smf: fix include 2022-05-25 11:14:18 +09:00
CMakeLists.txt lib: posix: move fnmatch from lib/util to lib/posix 2023-03-03 17:40:14 +09:00
Kconfig lib: posix: move fnmatch from lib/util to lib/posix 2023-03-03 17:40:14 +09:00