Zephyr API Documentation 4.5.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
atomic_types.h
Go to the documentation of this file.
1/* Copyright (c) 1997-2015, Wind River Systems, Inc.
2 * Copyright (c) 2021 Intel Corporation
3 * Copyright (c) 2023 Nordic Semiconductor ASA
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
12
13/* IWYU pragma: private, include "zephyr/sys/atomic.h" */
14/* IWYU pragma: friend "zephyr/sys/atomic_(arch|builtin)\\.h" */
15
16#ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_TYPES_H_
17#define ZEPHYR_INCLUDE_SYS_ATOMIC_TYPES_H_
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
26
34typedef long atomic_t;
35
42
49typedef void *atomic_ptr_t;
50
57
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif /* ZEPHYR_INCLUDE_SYS_ATOMIC_TYPES_H_ */
long atomic_t
Atomic integer variable.
Definition atomic_types.h:34
atomic_t atomic_val_t
Value type for atomic integer variables.
Definition atomic_types.h:41
atomic_ptr_t atomic_ptr_val_t
Value type for atomic pointer variables.
Definition atomic_types.h:56
void * atomic_ptr_t
Atomic pointer variable.
Definition atomic_types.h:49