1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/posix
Gunar Schorcht c09d9d87b7 sys/posix/pthread: newlib compatibility
When using a toolchain with built-in POSIX thread support, static C++ constructors use a static mutex variable which is initialized with `pthread_once` when first used. However, since RIOT's `pthread_once_t` type is different from that in newlib's `pthread`, which is assumed by GCC, RIOT crashes as soon as static constructors are used.
Changing the `pthread_once_t` type to be compatible with newlib's `pthread_once_t` type solves the problem and allows the RIOT `pthread` modules to be used even with toolchains with built-in POSIX thread support.
2022-03-02 11:57:47 +01:00
..
include cpu/esp32: remove types.h in sys include 2022-01-25 00:36:51 +01:00
inet sys/posix: Add posix_inet module to kconfig 2021-03-09 09:15:59 +01:00
pthread sys/posix/pthread: newlib compatibility 2022-03-02 11:57:47 +01:00
select posix_select: initial import of select() function 2020-07-01 18:10:26 +02:00
semaphore sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
sleep sys/posix_sleep: add module to Kconfig 2021-02-15 12:24:38 +01:00
sockets vfs / treewide: Remove manual zeroing of vfs stat buffers 2022-02-12 12:31:38 +01:00
doc.txt posix_select: initial import of select() function 2020-07-01 18:10:26 +02:00
Kconfig sys/posix: Add posix_inet module to kconfig 2021-03-09 09:15:59 +01:00