1# Copyright (c) 2024 Meta
2#
3# SPDX-License-Identifier: Apache-2.0
4
5menuconfig POSIX_READER_WRITER_LOCKS
6	bool "POSIX reader-writer locks"
7	help
8	  Select 'y' here to enable POSIX reader-writer locks.
9
10	  For more information please see
11	  https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
12
13if POSIX_READER_WRITER_LOCKS
14
15config MAX_PTHREAD_RWLOCK_COUNT
16	int "Maximum number of POSIX reader-writer locks"
17	default 5
18	help
19	  Maximum simultaneously active reader-writer locks in a POSIX application.
20
21	  Note: this is a non-standard option.
22
23module = PTHREAD_RWLOCK
24module-str = POSIX Reader-Writer Locks
25source "subsys/logging/Kconfig.template.log_config"
26
27endif # POSIX_READER_WRITER_LOCKS
28