zephyr/lib
Christopher Friedt eb7e4bed98 posix: pthread_attr: use space in struct more efficiently
This change reduces the space occupied by struct pthread_attr
which is the internal type used for pthread_attr_t.

We cap the stack size at 16 bits (so up to 65536 bytes) and
since a stack size of 0 is invalid, we can encode the stack
size by simply subtracting 1 or adding 1 when setting or
getting.

The schedpolicy is capped at 2 bits and initialized,
cancellable, and detached are given 1 bit.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-12-20 14:20:58 +00:00
..
acpi lib: acpi: Introduce HEAP_MEM_POOL_ADD_SIZE_ACPI option 2023-12-20 11:01:42 +01:00
cpp llvm: Add support for LLVM libc++ C++ Standard Library 2023-10-20 14:59:31 +02:00
crc lib: crc: Add CRC4 2023-09-26 08:36:09 +02:00
hash lib: hash: use new c++ Kconfig symbols 2023-07-26 14:53:51 +02:00
heap lib: heap: move heap stats to own file 2023-12-13 17:27:54 -05:00
libc ARCMWDT: Add headers for POSIX compatibility 2023-12-19 08:53:51 -06:00
mem_blocks lib: mem_block: move to own folder 2023-12-13 17:27:54 -05:00
open-amp open-amp: Fix compilation with cache enabled 2023-04-18 12:12:56 +02:00
os lib: mem_block: move to own folder 2023-12-13 17:27:54 -05:00
posix posix: pthread_attr: use space in struct more efficiently 2023-12-20 14:20:58 +00:00
runtime llvm: Add support for selecting runtime library 2023-08-03 19:35:11 +02:00
smf lib: smf: fix include 2022-05-25 11:14:18 +09:00
CMakeLists.txt lib: mem_block: move to own folder 2023-12-13 17:27:54 -05:00
Kconfig lib: mem_block: move to own folder 2023-12-13 17:27:54 -05:00