Zephyr Project API  3.3.0
A Scalable Open Source RTOS
pthread_key.h
Go to the documentation of this file.
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#ifdef CONFIG_PTHREAD_IPC
11#include <zephyr/sys/slist.h>
12#include <zephyr/types.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#if defined(CONFIG_MINIMAL_LIBC) || defined(CONFIG_PICOLIBC)
19typedef struct {
20 int is_initialized;
21 int init_executed;
22} pthread_once_t;
23#endif
24
25/* pthread_key */
26typedef uint32_t pthread_key_t;
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif /* CONFIG_PTHREAD_IPC */
33
34#endif /* ZEPHYR_INCLUDE_POSIX_PTHREAD_KEY_H_*/
Single-linked list implementation.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90