1 /* 2 * Copyright (c) 2018 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_INCLUDE_POSIX_PTHREAD_KEY_H_ 8 #define ZEPHYR_INCLUDE_POSIX_PTHREAD_KEY_H_ 9 10 #include <stdint.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #if defined(CONFIG_MINIMAL_LIBC) || defined(CONFIG_PICOLIBC) || defined(CONFIG_ARMCLANG_STD_LIBC) \ 17 || defined(CONFIG_ARCMWDT_LIBC) 18 19 #ifdef CONFIG_PTHREAD_IPC 20 21 typedef struct { 22 int is_initialized; 23 int init_executed; 24 } pthread_once_t; 25 #endif 26 27 /* pthread_key */ 28 typedef uint32_t pthread_key_t; 29 30 #endif /* CONFIG_PTHREAD_IPC */ 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif /* ZEPHYR_INCLUDE_POSIX_PTHREAD_KEY_H_*/ 37