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