Skip to content
Commit e357ba83 authored by Christopher Friedt's avatar Christopher Friedt Committed by Chris Friedt
Browse files

posix: internal: make priority / policy transforms available



Two functions can be used with relative ease to convert between
Zephyr and POSIX priorities and policies. Namely,

uint32_t zephyr_to_posix_priority(int32_t z_prio, int *policy)
int32_t posix_to_zephyr_priority(uint32_t priority, int policy)

These are not necessarily public API, but they helped with the
POSIX Philosophers Sample, which is in a subsequent commit.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent cf14d4f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment