1# Copyright (c) 2017 Intel Corporation
2# Copyright (c) 2023 Meta
3#
4# SPDX-License-Identifier: Apache-2.0
5
6TYPE = PTHREAD_BARRIER
7type = pthread_barrier_t
8type-function = pthread_barrier_wait
9rsource "Kconfig.template.pooled_ipc_type"
10
11if PTHREAD_BARRIER
12
13config PTHREAD_CREATE_BARRIER
14	bool "Use a pthread_barrier_t to serialize pthread_create()"
15	help
16	  When running several SMP applications in parallel instances of Qemu,
17	  e.g. via twister, explicit serialization may be required between
18	  pthread_create() and zephyr_thread_wrapper() when spawning and joining
19	  many pthreads concurrently.
20
21	  On such systems, say Y here to introduce explicit serialization
22	  via pthread_barrier_wait().
23
24endif
25