Blog
Community
Development
Documentation
CNDP
22.08.0
Main Page
Related Pages
Data Structures
Data Structures
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
x
Functions
_
c
d
e
f
g
h
i
j
k
l
m
n
p
s
t
u
v
x
Variables
Typedefs
a
b
c
h
i
j
l
m
o
p
s
t
u
v
Enumerations
Enumerator
_
a
c
d
e
j
m
p
r
s
t
u
Macros
_
a
c
d
e
h
i
j
k
l
m
o
p
r
t
u
v
x
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
cne_atomic.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright (c) 2019-2022 Intel Corporation.
3
*/
4
5
#ifndef _CNE_ATOMIC_H_
6
#define _CNE_ATOMIC_H_
7
12
#ifndef __cplusplus
13
#include <stdatomic.h>
14
#define CNE_ATOMIC(X) atomic_##X
15
#define CNE_MEMORY_ORDER(X) memory_order_##X
16
#else
17
#include <atomic>
18
#define CNE_ATOMIC(X) std::atomic<X>
19
#define CNE_MEMORY_ORDER(X) std::memory_order_##X
20
#endif
21
22
#endif
/* _CNE_ATOMIC_H_ */
lib
include
cne_atomic.h
Generated by
1.9.1