posix: deprecate PTHREAD_BARRIER for POSIX_BARRIERS

The standard specifies _POSIX_BARRIERS as an Option so let's
use CONFIG_POSIX_BARRIERS for consistence.

This change deprecates CONFIG_PTHREAD_BARRIER. Users should
instead choose CONFIG_POSIX_BARRIERS.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
Chris Friedt 2024-05-22 16:51:41 -04:00 committed by David Leach
commit b639604833
7 changed files with 37 additions and 13 deletions

View file

@ -57,6 +57,15 @@ config POSIX_MAX_OPEN_FILES
See also CONFIG_ZVFS_OPEN_MAX.
config PTHREAD_BARRIER
bool "pthread_barrier_t support [DEPRECATED]"
select DEPRECATED
select POSIX_BARRIERS
help
This option is deprecated.
Please use CONFIG_POSIX_BARRIERS instead.
config TIMER
bool "Timer support [DEPRECATED]"
select DEPRECATED