zephyr/lib
Christopher Friedt 694cd58647 posix: pthread: fixes for coverity 321140 and 321092
The `pthread_once_lock` `k_mutex` is statically initialized and
only visible within file scope. Coverity identified it as unsafe
because the return values of `pthread_mutex_lock()` and
`pthread_mutex_unlock()` were unchecked. However, if those
functions were to fail here, it would be indicative that
something far worse has happened.

In any case, we add assertions that these functions
succeed rather than silently ignoring with `(void)`, which
ensures that we have coverage when assertions are enabled,
in test, while removing unneeded code with assertions disable,
in production.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-07-09 08:20:32 -04:00
..
acpi lib: acpi: added acpi support using acpica lib 2023-06-30 17:53:01 +03:00
cpp Kconfig: Tidy up dependants of NATIVE_APPLICATION 2023-07-05 07:01:19 -04:00
hash lib: hashmap: Move hash table files lib/hashmap 2023-03-02 12:03:07 -05:00
libc libc/picolibc: Remove -T /dev/null linker arguments 2023-07-06 11:43:09 +02:00
open-amp open-amp: Fix compilation with cache enabled 2023-04-18 12:12:56 +02:00
os json: Fix 64-bit support 2023-06-29 21:03:48 +02:00
posix posix: pthread: fixes for coverity 321140 and 321092 2023-07-09 08:20:32 -04:00
smf lib: smf: fix include 2022-05-25 11:14:18 +09:00
CMakeLists.txt lib: acpi: added acpi support using acpica lib 2023-06-30 17:53:01 +03:00
Kconfig lib: acpi: added acpi support using acpica lib 2023-06-30 17:53:01 +03:00