posix: deprecate PTHREAD_RWLOCK for POSIX_READER_WRITER_LOCKS
This change deprecates CONFIG_PTHREAD_RWLOCK in favour of CONFIG_POSIX_READER_WRITER_LOCKS, which maps directly to the name of the standard POSIX Option. Annoyingly, the POSIX_RW_LOCKS Option Group is inconsistently named. However, it is more convenient for us to use the Option name since it is also the format used by the sysconf() variable (_SC_READER_WRITER_LOCKS). Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
parent
f270de7362
commit
70e2b02c8e
9 changed files with 41 additions and 12 deletions
|
@ -120,6 +120,15 @@ config PTHREAD_BARRIER
|
|||
|
||||
Please use CONFIG_POSIX_BARRIERS instead.
|
||||
|
||||
config PTHREAD_RWLOCK
|
||||
bool "pthread_spinlock_t support [DEPRECATED]"
|
||||
select DEPRECATED
|
||||
select POSIX_READER_WRITER_LOCKS
|
||||
help
|
||||
This option is deprecated.
|
||||
|
||||
Please use CONFIG_POSIX_READER_WRITER_LOCKS instead.
|
||||
|
||||
config PTHREAD_SPINLOCK
|
||||
bool "pthread_spinlock_t support [DEPRECATED]"
|
||||
select DEPRECATED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue