Skip to content

Conversation

cfriedt
Copy link
Member

@cfriedt cfriedt commented Oct 12, 2025

The sched_yield() function was originally included to facilitate the of POSIX_REALTIME and POSIX_THREADS_EXT Option Groups in Issue 5.

It was then marked as part of the _POSIX_PROCESS_SCHEDULING Option in Issue 6, and mentioned to be part of Threads in Issue 7, but then was not clearly marked as part of the POSIX_THREADS(_BASE) Option Group until Issue 8.

Moving it to pthread.c (and making it a function with regular linkage rather than inline) ensures that it will be available with the POSIX_THREADS Option Group.

For more information, please see POSIX_THREADS_BASE in https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html (Issue 7) and
https://pubs.opengroup.org/onlinepubs/9799919799/xrat/V4_subprofiles.html (Issue 8).

The `sched_yield()` function was originally included to facilitate the of
POSIX_REALTIME and POSIX_THREADS_EXT Option Groups in Issue 5.

It was then marked as part of the _POSIX_PROCESS_SCHEDULING Option in
Issue 6, but then was not clearly marked as part of the
POSIX_THREADS(_BASE) Option Group until Issue 7.

Moving it to `pthread.c` (and making it a function with regular
linkage rather than inline) ensures that it will be available with the
`POSIX_THREADS` Option Group.

For more information, please see `POSIX_THREADS_BASE` in
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/\
V4_subprofiles.html and
https://pubs.opengroup.org/onlinepubs/9799919799/xrat/\
V4_subprofiles.html

Signed-off-by: Chris Friedt <[email protected]>
Move `sched_yield()` from the `_POSIX_PRIORITY_SCHEDULING` Option to the
`POSIX_THREADS_BASE` Option Group.

For more information, please see
https://pubs.opengroup.org/onlinepubs/9799919799/xrat/V4_subprofiles.html

Signed-off-by: Chris Friedt <[email protected]>
Copy link

@cfriedt cfriedt marked this pull request as ready for review October 13, 2025 13:39
@zephyrbot zephyrbot added the area: POSIX POSIX API Library label Oct 13, 2025
@zephyrbot zephyrbot requested a review from ycsin October 13, 2025 13:40
@cfriedt cfriedt requested a review from kartben October 13, 2025 15:24
@cfriedt cfriedt added this to the v4.3.0 milestone Oct 14, 2025
@cfriedt cfriedt requested a review from jhedberg October 14, 2025 15:21
@cfriedt cfriedt merged commit 2b8e614 into zephyrproject-rtos:main Oct 15, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: POSIX POSIX API Library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants