zephyr/lib/posix
Jaxson Han 0e1ff84fe7 posix: Fix pthread_once has incorrect behavior
As described in
https://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_once.html.
The behavior of pthread_once() is undefined if once_control has
automatic storage duration or is not initialized by PTHREAD_ONCE_INIT

However, in Zephyr, the implementation is incorrect. If the init value
is PTHREAD_ONCE_INIT, the program will never run the init_func.

Signed-off-by: Jaxson Han <jaxson.han@arm.com>
2022-04-05 10:38:30 -07:00
..
getopt everywhere: fix typos 2022-03-18 13:24:08 -04:00
clock.c lib: posix: clock: Prevent early overflows 2022-04-01 09:37:41 +02:00
CMakeLists.txt lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
eventfd.c
fs.c
Kconfig kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
mqueue.c everywhere: fix typos 2022-03-14 20:22:24 -04:00
nanosleep.c
pthread_barrier.c posix: pthread: replace irq_lock with spinlock 2021-09-03 12:20:19 -04:00
pthread_common.c
pthread_cond.c pthread: cond: fix pthread_cond_wait always returning ETIMEDOUT 2022-02-09 22:16:45 -05:00
pthread_key.c
pthread_mutex.c everywhere: fix typos 2022-03-18 13:24:08 -04:00
pthread_rwlock.c everywhere: fix typos 2022-03-18 13:24:08 -04:00
pthread_sched.c
pthread.c posix: Fix pthread_once has incorrect behavior 2022-04-05 10:38:30 -07:00
semaphore.c
sleep.c
timer.c everywhere: fix typos 2022-03-14 20:22:24 -04:00