Implement the POSIX_CLOCK_SELECTION Option Group. This was mostly already done, but compiled / linked in the wrong places. E.g. pthread_condattr_getclock() and pthread_condattr_setclock() were in pthread.c and part of POSIX_THREADS_BASE. clock_nanosleep() was in clock.c and part of POSIX_TIMERS. This change builds them as part of clock_selection.c with CONFIG_POSIX_CLOCK_SELECTION. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
14 lines
476 B
Plaintext
14 lines
476 B
Plaintext
# Copyright (c) 2025 Tenstorrent AI ULC
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config POSIX_CLOCK_SELECTION
|
|
bool "POSIX Clock Selection"
|
|
help
|
|
Select 'y' here and Zephyr will provide an implementation of the POSIX_CLOCK_SELECTION Option
|
|
Group, which includes the functions clock_nanosleep(), pthread_condattr_getclock(),
|
|
pthread_condattr_setclock().
|
|
|
|
For more information, please see
|
|
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
|